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]#


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]#