LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2013, 12:19 AM   #1
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Rep: Reputation: Disabled
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
 
Old 01-15-2013, 12:23 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 01-15-2013, 12:24 AM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 01-15-2013, 12:35 AM   #4
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-15-2013, 12:35 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 01-15-2013 at 12:47 AM.
 
Old 01-15-2013, 12:37 AM   #6
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-15-2013, 12:45 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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

Last edited by EricTRA; 01-15-2013 at 12:56 AM. Reason: copy / paste error ;)
 
Old 01-15-2013, 12:49 AM   #8
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear EricTRA

i posted the output this above
 
Old 01-15-2013, 12:50 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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 )
 
Old 01-15-2013, 12:53 AM   #10
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
dear Chrism01,

i not able to read ls /etc/yum.repos.d file its says no such file or directory
 
Old 01-15-2013, 12:53 AM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by gajananh999 View Post
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
 
Old 01-15-2013, 12:55 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by chrism01 View Post
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
 
Old 01-15-2013, 12:57 AM   #13
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear John VV,


I am using a amazon ec2 machine.
 
Old 01-15-2013, 01:18 AM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 01-15-2013 at 01:19 AM.
 
Old 01-15-2013, 01:19 AM   #15
gajananh999
Member
 
Registered: Aug 2012
Posts: 94

Original Poster
Rep: Reputation: Disabled
Dear EricTRA,

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 04:15 PM
yum not working revathskumar Linux - Newbie 4 09-22-2009 02:45 AM
Why is YUM not working? rayj00 Linux - Software 2 10-07-2006 09:44 PM
yum not working saipraveen Linux - Newbie 4 08-22-2005 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration