惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

Old driver – 魔帆博客

绑定域名到虚拟主机的子目录上 | 魔帆博客 VMware虚拟机安装Ubuntu系统 | 魔帆博客
repo文件详解 | 魔帆博客
Old driver · 2017-01-04 · via Old driver – 魔帆博客

yum使用仓库保存管理rpm的软件包、仓库的配置文件保存在/etc/yum.repos.d/目录下格式如下:

[root@linuxprobe ~]# vim /etc/yum.repos.d/rhel7.repo
[rhel7]
name=rhel7 #描述仓库的基本信息,也可以就当个名称用
baseurl=file:///media/cdrom #仓库的地址,本地源或者网络源
enabled=1 #是否启用,1表示启用,0表示不启用
gpgcheck=0 #是否校验 1表示校验,0表示不校验

yum配置文件必须以.repo结尾,一个配置文件中可以保存多个yum仓库的配置信息,/etc/yum.repos.d/目录下可以存在多个配置文件.

使用yum操作软件的相关命令:
yum install software-name #安装指定的软件
yum remove software-name #卸载指定的软件
yum update software-name #更新指定的软件

使用yum进行查询操作:
yum search keyword #搜索
yum list (all|installed|recent|updates) #列出全部、安装的、最近的、软件更新
yum info packagename #显示指定软件信息
yum whatprovides packagename #查询哪个rpm包含软件包