Home > Article > Operation and Maintenance > How to install yum under centos7
Installation method:
1. Download the yum installation file (if you don’t have this package, you can download it from Alibaba Mirror or NetEase Mirror)
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
2 , install yum
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
Note: The last two packages must be installed at the same time, otherwise they will depend on each other.
3. Update the repo file
Enter the /etc/yum.repos.d folder,
Modify the configuration file name
mv CentOS7-Base-163.repo CentOS7-Base.repo
Related tutorial recommendations: centos tutorial
The above is the detailed content of How to install yum under centos7. For more information, please follow other related articles on the PHP Chinese website!