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).
sudo
when you run this command?ls -l /bin/su
? command not found seems like you have bigger issues than mere yum.