Home >Operation and Maintenance >CentOS >How to install yum on centos

How to install yum on centos

王林
王林Original
2020-03-17 17:11:0415030browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn