yum软件包管理
时间:2019-10-21 11:19:18
收藏:0
阅读:52
一、yum常用命令
#yum -y install [软件包名] //安装 #yum erase [软件包名] //卸载 #yum clean all //清除缓存 #yum makecache //加载缓存
二、本地yum配置
(1)本机创建yum仓库
#mkdir -p /root/test #cd /root/test #wget http://mirror.centos.org/centos-7/7/os/x86_64/Packages/dhclient-4.2.5-77.el7.centos.x86_64.rpm
(2)生成repodata依赖文件
#create /root/test
(3)修改yum配置文件
#cd /etc/yum.repos.d //进入yum配置目录 #touch local.repo //创建配置文件 #vim local.repo //编辑配置文件
三、网络yum配置
#cd /etc/yum.repos.d
#touch cenos.repo
#vim cenos.repo
注意:baseurl路径,到repodate文件所在目录
原文:https://www.cnblogs.com/lizhewei/p/11712076.html
评论(0)