centos7下怎么安装yum
时间:2022-02-28 15:07
安装方法: 1、下载yum安装文件 (若没有此包,可以去阿里镜像或网易镜像下载) 2、进行安装yum 注意:最后两个包必需同时安装,否则会相互依赖。 3、更新repo文件 进入 /etc/yum.repos.d文件夹下, 修改配置文件名 相关教程推荐:centos教程 以上就是centos7下怎么安装yum的详细内容,更多请关注gxlcms其它相关文章!wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-161.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh python-iniparse-0.4-9.el7.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
rpm -ivh yum-3.4.3-161.el7.centos.noarch.rpm yum-plugin-fastestmirror-1.1.31-50.el7.noarch.rpm
mv CentOS7-Base-163.repo CentOS7-Base.repo