centos7 64位 yum安裝
阿新 • • 發佈:2018-11-08
所需安裝包(下載地址):
#所需依賴
python-libs-2.7.5-58.el7.x86_64.rpm
python-2.7.5-58.el7.x86_64.rpm
python-iniparse-0.4-9.el7.noarch.rpm
python-pycurl-7.19.0-19.el7.x86_64.rpm
rpm-python-4.11.3-25.el7.x86_64.rpm
yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
#安裝要用
yum-3.4.3-154.el7.centos.noarch.rpm
yum-plugin-fastestmirror-1.1 .31-42.el7.noarch.rpm
安裝命令:
rpm -ivh python-libs-2.7.5-58.el7.x86_64.rpm
rpm -ivh python-2.7.5-58.el7.x86_64.rpm
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh python-pycurl-7.19.0-19.el7.x86_64.rpm
rpm -ivh rpm-python-4.11.3-25.el7.x86_64.rpm
rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-3.4.3-154.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-42.el7.noarch.rpm
此時yum命令已經可用,但是安裝軟體會報錯,繼續執行以下程式
修改yum源:
cd /etc/yum.repos.d
下載所需軟體包(下載地址);
將下載的軟體包放到/etc/yum.repos.d/下面
執行makecache 生成快取
yum makecache
執行yum clean all
yum clean all
更新yum檔案
yum update