Skip to content

Linux pkg yum

WinChua edited this page Jul 3, 2020 · 1 revision

配置文件

/etc/yum.conf : 所有仓库的公共配置文件 /etc/yum.repos.d/*.repo : 仓库地址配置文件

配置文件语法:

[reposityID] ## 仓库名字,自定义
name = first ## 仓库描述, 可有可无
baseurl = 仓库url, 支持: file://; https://; ftp://
enabled = {0|1} 是否使用该仓库
gpgcheck={0|1} 检查包完整性, 

命令用法:

  • yum repolist
  • yum list: 最后一列有@表示安装过的,

tmp: https://www.jianshu.com/p/19408c427825

Clone this wiki locally