简体   繁体   中英

Install 'yum' in Centos7

I've deleted yum from my server and I did wget to download yum again and extract it. In this folder, I have a lot of files:

AUTHORS      completion-helper.py  Makefile   shell.py  yumcommands.py
bin          COPYING               output.py  test      yum-cron
callback.py  docs                  po         TODO      yummain.py
ChangeLog    etc                   README     utils.py  yum.spec
cli.py       INSTALL               rpmUtils   yum       yum-updatesd.py

How can I install it?

Another solution to install packages is to use the RPM command. You first need to download the rpm file and then install it. For more infos: RPM man page

So, to install yum , simply run those two commands:

wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm -ivh yum-3.4.3-154.el7.centos.noarch.rpm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM