I made a big mistake: I removed yum. So now when I for example run the following it gives me an error:
$ yum clean all
yum command not found.
I can download the package succesfully:
wget mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
--2014-01-15 15:42:59-- http://mirror.centos.org/centos/6/os/i386/Packages/yum-3.2.29-40.el6.centos.noarch.rpm
Resolving mirror.centos.org... 192.133.139.3
Connecting to mirror.centos.org|192.133.139.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1019540 (996K) [application/x-rpm]
Saving to: “yum-3.2.29-40.el6.centos.noarch.rpm.1”
100%[====================================================================================================================>] 1,019,540 649K/s in 1.5s
2014-01-15 15:43:01 (649 KB/s) - “yum-3.2.29-40.el6.centos.noarch.rpm.1” saved [1019540/1019540]
Trying to install the downloaded package gives the following error:
# rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm
Preparing... ########################################### [100%]
file /usr/lib/python2.6/site-packages/yum/__init__.py from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.29-30.el6.centos.noarch
[...]
file /usr/share/yum-cli/yummain.pyo from install of yum-3.2.29-40.el6.centos.noarch conflicts with file from package yum-3.2.29-30.el6.centos.noarch
There is no directory "yum" in /usr/bin
.
When I use the command "rpm -qa | grep yum".
yum-metadata-parser-1.1.2-16.el6.x86_64
yum-plugin-fastestmirror-1.1.30-14.el6.noarch
yum-3.2.29-30.el6.centos.noarch
The distro is CentOS 6.3.
How can I reinstall yum?
$PATH
of your computer is f$$$$ up. please give us the content of commandecho $PATH
if you work asroot
please connect toroot
account with the commandsu -
and notsu
– Kiwy Jan 15 '14 at 14:48