-1

Created a new EC2 Instance with Centos 7, first thing i typed yum update, it says yum: command not found

# cat /etc/*-release
CentOS Linux release 7.0.1406 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CentOS Linux release 7.0.1406 (Core)
CentOS Linux release 7.0.1406 (Core)


# whereis yum
yum: /etc/yum /usr/etc/yum

Tried almost everything I could find on internet. Any solutions?

  • What do you see when you run echo $PATH? – D34DM347 Oct 25 '16 at 11:38
-1

Okay, I got it, I was using community AMI, it might be broken. Got Centos7 from marketplace, it worked.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.