LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-01-2009, 09:11 PM   #1
Arbiter
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Yum Won't Get Packages


Hey guys,

Quick summary, when I type in yum update or yum install vlock, something that I know works with yum, I get the following:

I enter: yum update
Fedora Response:Setting up Update Process
No Packages marked for Update

Here's the one stipulation, the machine I'm trying to fix is purposely broken. Long story short it's a hacking competition in which they have given us a fedora 9 machine which has the yum problem. I have compared the broken yum conf file with a working yum conf file and they are the same. How in the world do I solve this? I kind of need yum to make sure my system is up to date and to install software to make my system more secure.

Can I uninstall and reinstall somehow, haven't found any working solutions on any of the forums I've been searching for the last 3 hours.

Thanks for the help!
 
Old 12-02-2009, 01:19 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The message simply indicates that there are no updated packages available, why do you think there is a problem ? I doubt there would be any updates for Fed 9 any more due to the Fedora release cycle -

http://fedoraproject.org/wiki/LifeCycle

.. basically, Fed 9 is no longer maintained since 1 month after the release of Fed 11

If you want to confirm that yum is working, try 'yum list available'

cheers
 
1 members found this post helpful.
Old 12-02-2009, 04:16 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Fedora 9 is still in the repo , EDIT :
the updates are in "newkey" , see post # 7.


Wait a few days / weeks, ( a month ? ). and the repo is gone.
And you will have to edit /etc/yum.repos.d/fedora.repo
to the "old archive address". Like this for " 8 "
http://archives.fedoraproject.org/pu...thing/i386/os/
.....

Last edited by knudfl; 12-02-2009 at 06:04 PM.
 
Old 12-02-2009, 09:21 AM   #4
Arbiter
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks guys for the response! Let me clarify. When I do something like a "yum install vlock" which I have tested on a Fedora 9 machine I built myself and it works but on the machine that was given to us I get the message:

Setting up Install Process
Parsing package install arguments
No package vlock available.
Nothing to do

I know there are updates because I do an "rpm --query --all" and some of the programs install are not the most up-to-date version available according to their websites and the good Fedora 9 machine I have.

@knudfl I went to http://archives.fedoraproject.org/pu...thing/i386/os/ and I compared it to my repo file, and they are the same?

@kbp I did a 'yum list available' and nothing was displayed.

Is there an rpm that I could get or something and then try to reinstall yum?

Last edited by Arbiter; 12-02-2009 at 11:05 AM.
 
Old 12-02-2009, 03:15 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
If you view the repo files under /etc/yum.repos.d/ you should be able to see whether they are enabled or not, could you please check ?
 
Old 12-02-2009, 04:13 PM   #6
Arbiter
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I got it to work! Here's the problem and kbp you helped me realize it so thank you! They had moved all the repo files from the /etc/yum.repos.d to a directory they had created /etc/yum.repos.d/tmp which doesn't make yum error out, all it will say it that it couldn't find anything to update. The many times I went through it for some reason I thought nothing of it; I guess that's why I'm still a newb. Anyways I copied the files down to the parent directory (/etc/yum.repos.d) and ran yum update and it works! I think we might actually win this competition, thanks guys!
 
Old 12-02-2009, 05:49 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
EDIT .. An answer, post # 7 , and I have seen # 8.
That tmp/ folder, wonder where it came from, never seen that till now ?

# 7 : A little more complicated than that.
( And the link, you show is the 'old archive' : try open it.)

As ordinary user : yum list available > todays-list.txt
.. I get 11,547 packages from ? .. See /etc/yum.repos.d/
.. where I have → → ls /etc/yum.repos.d/ > >
fedora.repo
fedora.repo.rpmnew
fedora-updates-newkey.repo
fedora-updates.repo
fedora-updates-testing-newkey.repo
fedora-updates-testing.repo
( not all are " enabled=1 " ).

The updates are still listed in the "yum list available" list.

Yum is choosing from a mirror list, where the first part could be :
http://download.fedora.redhat.com/pu.../9/Everything/
.. then your architecture decides the next ... e.g. i386 :
http://download.fedora.redhat.com/pu...thing/i386/os/
.. which is the real base repo address, i.e. points to a folder "repodata/"

And I was wrong , there are still updates ( for now anyway )
= -updates-newkey.repo
http://download.fedora.redhat.com/pu...9/i386.newkey/
.. the folder ' repodata/ ' is next after the package
'renrot-1.1-1.fc9.noarch.rpm'

So I can't say why you get nothing from "yum list available".
Unless you have an " exclude* " in /etc/yum.conf .
.....

Last edited by knudfl; 12-02-2009 at 06:16 PM.
 
  


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 equivalent of these apt packages Guardian-Mage Linux - Server 2 04-22-2009 09:09 AM
Using Yum To Install Packages Arty Ziff Linux - Newbie 4 12-30-2008 04:23 PM
Ignore Packages in Yum? sipsipi Fedora 1 02-11-2006 02:19 PM
using yum for extra packages beowulf405 Fedora 1 06-21-2004 11:40 PM
installing packages using yum in fedora sven_p Linux - Software 1 03-16-2004 06:27 AM

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

All times are GMT -5. The time now is 08:59 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