[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.
I have taken a centos dedicated server of linux.
I tried to install one game panel to it. Somehow it did not go though well and i m in some real problem.
When i try to use the command Yum it says
-bash: yum: command not found
It was working fine earlier.
Somebody has told me i need to go for complete os reinstall. But for that i have to pay 100 dollars to data center as its chargable.
it is hard to say from here. Maybe your path is not ok, maybe yum is lost somehow, maybe you can simply restore it (if you can boot and log in and in general the host is working properly).
it is hard to say from here. Maybe your path is not ok, maybe yum is lost somehow, maybe you can simply restore it (if you can boot and log in and in general the host is working properly).
Yes i can login into putty as root
But when i try to do yum install anything or try to start any service as well
i get error message
[root@HYD1008 ~]# service iptables status
/sbin/service: line 3: /etc/init.d/functions: No such file or directory
I have another centos 5.7 server locally i moved init.d folder now everything is workign except for rpm and yum.
Kindly suggest what all files needs to be moved from other server to make it work?
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
Rep:
Have you tried /usr/bin/yum instead of just yum?
It could be possible that /usr/bin has been removed from the path.
You can check by typing echo $PATH
Or it could also be that yum package accidentally removed.
Check if the yum packages is installed or not.
Last edited by Satyaveer Arya; 04-15-2012 at 03:14 PM.
[root@HYD1008 /]# cd usr
[root@HYD1008 usr]# cd bin
[root@HYD1008 bin]# cd yum
-bash: cd: yum: No such file or directory
[root@HYD1008 bin]# yum
-bash: yum: command not found
[root@HYD1008 bin]# echo $path
[root@HYD1008 bin]# which yum
/usr/bin/which: no yum in (/opt/mono-1.9/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@HYD1008 bin]#
Are you able to install all these packages using rpm -ivh <package-name> command? I think not because as you told that rpm package is also not installed on your machine, am I right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.