How to install yum on centos

王林
Release: 2020-03-17 17:11:04
Original
14914 people have browsed it

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
Copy after login

(Recommended tutorial:centos usage tutorial)

2. Enter the directory and run the installation

cd yum-3.2.28 yummain.py install yum
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!