A012 Linux下yum源的安装与配置(redhat 6.9)

软件包下载:

链接: https://pan.baidu.com/s/1X_wtM04yNMJfnEtV1EcBfg 密码: 9nkj

 

1、查询安装的rpm包
# rpm -qa |grep yum
PackageKit-yum-plugin-0.5.8-26.el6.x86_64
yum-rhn-plugin-0.9.1-60.2.el6_8.noarch
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-plugin-security-1.1.30-40.el6.noarch
PackageKit-yum-0.5.8-26.el6.x86_64
yum-3.2.29-81.el6.noarch
yum-utils-1.1.30-40.el6.noarch


2、删除自带的 rpm包
# rpm -qa|grep yum|xargs rpm -e --nodeps
# rpm -qa |grep yum
因为一些包之间可能会有依赖关系,所以我们需要加上参数 --nodeps 无视依赖关系。


3、下载rpm包
rpm包下载地址http://mirrors.163.com/centos/6.9/os/x86_64/
# mkdir -p /home/software/yum
# cd /home/software/yum
# wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-3.2.29-81.el6.centos.noarch.rpm
# wget http://mirrors.163.com/centos/6.9/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-40.el6.noarch.rpm
# wget http://mirrors.163.com/centos/6.9

你可能感兴趣的:(软件部署,软件部署)