Article 4Z0WE Deleted yum centos 7

Deleted yum centos 7

by
tpolim008
from LinuxQuestions.org on (#4Z0WE)
Hello, I deleted yum by accident and didn't mean to dumb move. I had a backup and restored the directories but still can't seem to get it working can anyone offer some help on how to resolve this?

Please let me know what output you need

I restored
/etc/yum
/usr/bin/yum

I still get the following

Code:[root@srv01 ~]# rpm -e centos-release --nodeps
warning: file /etc/yum/vars/infra: remove failed: No such file or directory
warning: file /etc/yum/vars/contentdir: remove failed: No such file or directory
[root@srv01 ~]# yum instal update
-bash: yum: command not found
[root@srv01 ~]#
[root@srv01 yum]# ls
yum yum_save_tx.2020-01-30.15-44.erW7bM.yumtx yum_save_tx.2020-02-03.15-09.Ug81Ur.yumtx yum_save_tx.2020-02-06.09-07.SEU0i6.yumtx
[root@srv01 yum]#

[root@srv01 bin]# cd /usr/bin/yum
[root@srv01 yum]# ls
fssnap.d pluginconf.d protected.d vars version-groups.conf
[root@srv01 yum]#latest?d=yIl2AUoC8zA latest?i=pkJ0VGwdYI0:AR2k3LIOK70:F7zBnMy latest?i=pkJ0VGwdYI0:AR2k3LIOK70:V_sGLiP latest?d=qj6IDK7rITs latest?i=pkJ0VGwdYI0:AR2k3LIOK70:gIN9vFwpkJ0VGwdYI0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments