«

红帽redhat6安装yum

时间:2022-11-18 16:57     作者:六度科技     分类: linux技巧


文件来源https://www.cnblogs.com/royfans/p/7249110.html
redhat6安装yum
先下载yum包

wget https://mirrors.aliyun.com/centos-vault/6.5/cr/i386/Packages/yum-3.2.29-60.el6.centos.noarch.rpm
wget https://mirrors.aliyun.com/centos-vault/6.5/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget https://mirrors.aliyun.com/centos-vault/6.7/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
wget https://mirrors.aliyun.com/centos-vault/6.7/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

开始安装

rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm 
rpm -ivh yum-3.2.29-60.el6.centos.noarch.rpm  yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
rpm -ivh yum和yum-plugin-fastestmirror
有相依性,所以要一起装

查看系统的python信息

rpm -qa|grep python

配置源

wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
sed -i "s/\$releasever/7/g" CentOS6-Base-163.repo
阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo

清理yum缓存

yum clean all

将服务器软件包信息缓存至本地,提高搜索安装效率

yum makecache

测试

yum seach vim

标签: linux