Home >Operation and Maintenance >CentOS >How to install yum on centos
Enter the following commands in Linux:
1. Download the latest yum-3.2.28.tar.gz and unzip it
wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz tar xvf yum-3.2.28.tar.gz
(Recommended tutorial: centos usage tutorial)
2. Enter the directory and run the installation
cd yum-3.2.28 yummain.py install yum
If the result prompts an error: CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/
It may be that the configuration file is missing. Create a new yum.conf file under the etc directory, and then run yummain.py install yum again to complete the installation successfully.
3. Finally update the system.
yum check-update yum update yum clean all
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of How to install yum on centos. For more information, please follow other related articles on the PHP Chinese website!