I'm having problems with yum and I am trying to re-install it. I've download yum.3.2.0-40-el6.centos.noarch.rpm.
When I try:
$ rpm -ivh yum.3.2.0-40-el6.centos.noarch.rpm
I get:
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
I tried running su - and I'm getting this error:
-bash: su: command not found`
I get the same "permission denied error" if I try to uninstall yum and force ignore dependencies (without forcing to ignore dependencies, it fails uninstall with a few dependencies).
sudowhen you run this command? – slm♦ Apr 20 '14 at 22:44ls -l /bin/su? command not found seems like you have bigger issues than mere yum. – Dani_l Nov 10 '15 at 15:41