[SOLVED] Centos 5 Error :- -bash: yum: command not found
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
---------- Post added 04-17-12 at 04:45 PM ----------
[root@HYD1008 bin]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Feb 22 2012, 16:05:45)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
Quote:
Data center guy is asking for 50 dollars for reinstall
If i can save that money then i will.
Ofcourse sachin you can do that. And pan64 can you help him in getting tar package or any link of rpm and yum so that he can compile them, as the rpm package he accidentally removed from the server. I think the only way to getting the rpm work is to compile the tar package. Isn't it?
Quote:
I am almost through building it.
How? What have you done so far? Which package you installed? Only that python package or you moved on further with some package installation?
Ofcourse sachin you can do that. And pan64 can you help him in getting tar package or any link of rpm and yum so that he can compile them, as the rpm package he accidentally removed from the server. I think the only way to getting the rpm work is to compile the tar package. Isn't it?
How? What have you done so far? Which package you installed? Only that python package or you moved on further with some package installation?
See i have another machine which has the same centos version.
Can i move some files from there and paste it here?
pan64 can you help him in getting tar package or any link of rpm and yum so that he can compile them, as the rpm package he accidentally removed from the server. I think the only way to getting the rpm work is to compile the tar package. Isn't it?
Unfortunately I'm unsure, I do not know what is lost and how can he repair. From here it is really hard to say just download this tarball and uncompress, but it may also solve the problem. You will never be able say everything is restored.
Also others gave him links, I do not want to copy or repeat them. I just wanted to say (as he already mentioned): maybe much safer and quicker to reinstall instead of finding lost files (also he has difficulties with installing, compiling...).
From the other hand he will have a lot of experiences, go ahead and learn linux.
Unfortunately I'm unsure, I do not know what is lost and how can he repair. From here it is really hard to say just download this tarball and uncompress, but it may also solve the problem. You will never be able say everything is restored.
Also others gave him links, I do not want to copy or repeat them. I just wanted to say (as he already mentioned): maybe much safer and quicker to reinstall instead of finding lost files (also he has difficulties with installing, compiling...).
From the other hand he will have a lot of experiences, go ahead and learn linux.
I will prefer learning then just doing a quick re install.
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
Quote:
Unfortunately I'm unsure, I do not know what is lost and how can he repair. From here it is really hard to say just download this tarball and uncompress, but it may also solve the problem. You will never be able say everything is restored.
Also others gave him links, I do not want to copy or repeat them. I just wanted to say (as he already mentioned): maybe much safer and quicker to reinstall instead of finding lost files (also he has difficulties with installing, compiling...).
From the other hand he will have a lot of experiences, go ahead and learn linux.
Yes, that's what he is trying to fix up his system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.