Install 'Yum' in Centos7 [Closed]

Install 'Yum' in Centos7 [Closed]

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?

3

1 Answer

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 
rpm -ivh yum-3.4.3-154.el7.centos.noarch.rpm
1
Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.