SUDO YUM not found

Posted by ThomasReggi on Server Fault See other posts from Server Fault or by ThomasReggi
Published on 2012-11-28T16:08:26Z Indexed on 2012/11/28 17:06 UTC
Read the original article Hit count: 402

Filed under:
|
|
|

I am running a Amazon ec2 instance on amazon's linux.

Whenever I run anything sudo yum it give me this:

sudo: yum: command not found

ec2-user$ rpm -qf /usr/bin/yum
yum-3.2.29-30.24.amzn1.noarch

ec2-user$ which yum
/usr/bin/yum

which yum while in root gives:

root$ which yum
/usr/bin/which: no yum in (/sbin:/bin:/usr/sbin:/usr/bn:/usr/local/bin:/opt/aws/bin)

This is a new ec2 instance two days old. When I first logged in I ran sudo yum update and everything wen't well. What changed?

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about yum