yum软件管理
-
yum源指向文件
/etc/yum.repos.d/xxxx.repo[root@localhost desktop] # vim /etc/yum.repos.d/yum.repo ## 配置yum源指向文件yum.repo [rhel7.2] ## yum源名称 name=rhel7.2 ## 源描述 baseurl=file:///rhel7.2 ## 源地址 http:// | ftp:// | file:// gpgcheck=0 ## 不检查gpgkey enable=1 ## 启用该源,默认=1
-
yum常用命令
yum install softname ## 安装 remove softname ## 卸载 list softname ## 查看源中是否有该软件 search softinfo ## 根据软件信息找软件名 reinstall softname ## 重新安装 info softname ## 查看软件信息 update softname ## 升级软件 whatprovides filename ## 在源中查找包含filenam