LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum is not working (https://www.linuxquestions.org/questions/linux-newbie-8/yum-is-not-working-4175445649/)

gajananh999 01-15-2013 12:19 AM

yum is not working
 
Dear All,

I m not able to download any tool from when i say yum install its giving me this error

$ yum install gcc
Loaded plugins: security
Setting up Install Process
Nothing to do


Can anyone help me on this

chrism01 01-15-2013 12:23 AM

Can you post the the output of
Code:

cat /etc/*release*

uname -a

ls cd /etc/yum.repos.d

cat cd /etc/yum.repos.d/*

You'll need to be root.

EricTRA 01-15-2013 12:24 AM

Hi,

First of all, when you post a problem, please mention what distro and version you are using. Do you have your repos setup correctly? Post output of:
Code:

yum repolist enabled
Is this the first time you use yum in this installation? If so, did you run:
Code:

sudo yum update
before trying to install anything?

Kind regards,

Eric

gajananh999 01-15-2013 12:35 AM

Dear chrism,

$ cat /etc/*release*
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

$ uname -a
Linux ip-10-12-195-154 2.6.18-164.0.0.0.1.el5xen #1 SMP Thu Sep 3 00:34:43 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

$ ls cd /etc/yum.repos.d
ls: cd: No such file or directory
/etc/yum.repos.d:


$ cat cd /etc/yum.repos.d/*
cat: cd: No such file or directory
cat: /etc/yum.repos.d/*: No such file or directory

John VV 01-15-2013 12:35 AM

Quote:

yum install gcc
Loaded plugins: security
Setting up Install Process
Nothing to do
without knowing more info ( see above)

that massage says that gcc is installed
or
there is no repo enabled that has it

--- edit ---
posted to quick
Quote:

Enterprise Linux Enterprise Linux Server release 5.4
only supported if you have a paid for license

if it is not registered then you can not install anything
Also 5.4 is very old
the current in the old 5 series is 5.8 ( 2 years newer )


Quote:


$ ls cd /etc/yum.repos.d
ls: cd: No such file or directory
/etc/yum.repos.d:
well you have no software repositories installed
not even RHN or the updates
nor the base 5.4 repo file

basically
you can not install anything on this

a few options
1)
5.4 is OLD but red hat will ( for an extra fee ) provide extra support for 5.4 to KEEP it at 5.4
not recommend ! unless you MUST

2)
if you NEED the older 5 series
buy a license form red hat and register the 5.8 install
not recommend ! unless you MUST

3)
Buy RHEL 6.3 the current , and register it ( required )

if you are not going to buy the required license then install one of the FREE rebuilds

for the older 5 series ( hard to support -- it is starting to get a bit old )
CentOS 5.8
scientificLinux 5.8

For the current 6 series
CentOS 6.3
scientificLinux 6.3

gajananh999 01-15-2013 12:37 AM

Dear EricTRA,

Yes this is the first time i m doing it

here is

$ yum repolist enabled
Loaded plugins: security
repolist: 0


$ sudo yum update
Loaded plugins: security
Setting up Update Process
No Packages marked for Update

EricTRA 01-15-2013 12:45 AM

Hi,

There you go, apparently you don't have any repositories enabled. As requested also by chrism01, run the following and post the output please:
Code:

cat /etc/*release*
uname -a
ls /etc/yum.repos.d

to see what distro and version you're using, kernel, and if there are any repo definition files available or not.

Kind regards,

Eric

gajananh999 01-15-2013 12:49 AM

Dear EricTRA

i posted the output this above

chrism01 01-15-2013 12:50 AM

Aarrgghh; apologies for typo/copy n paste; they should read
Code:

ls /etc/yum.repos.d

cat /etc/yum.repos.d/*

basically listing the repos files defined, then show contents of those files.

(Just noticed EricTRA copied my mistake ... we're only human ;) )

gajananh999 01-15-2013 12:53 AM

dear Chrism01,

i not able to read ls /etc/yum.repos.d file its says no such file or directory

EricTRA 01-15-2013 12:53 AM

Quote:

Originally Posted by gajananh999 (Post 4870267)
Dear EricTRA

i posted the output this above

Hi,

Sorry, I missed that one too. The, in my opinion, only correct and complete advice has been given in post #5 by John VV.

Kind regards,

Eric

EricTRA 01-15-2013 12:55 AM

Quote:

Originally Posted by chrism01 (Post 4870271)
Aarrgghh; apologies for typo/copy n paste; they should read
Code:

ls /etc/yum.repos.d

cat /etc/yum.repos.d/*

basically listing the repos files defined, then show contents of those files.

(Just noticed EricTRA copied my mistake ... we're only human ;) )

Hi Chris,

Thank God for small reminders that we're still human. Fr*$% copy/paste. Just shows that cutting corners, or at least trying to, is not always a good idea.

Kind regards,

Eric

gajananh999 01-15-2013 12:57 AM

Dear John VV,


I am using a amazon ec2 machine.

John VV 01-15-2013 01:18 AM

ask amazon about the red hat server cloud support
http://aws.amazon.com/ec2/pricing/
the red hat server pricing is
https://www.redhat.com/wapps/store/catalog.html

gajananh999 01-15-2013 01:19 AM

Dear EricTRA,

yum.repos.d this folder is present but the version of the linux is not mentioned in this folder


All times are GMT -5. The time now is 02:57 PM.