Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-20-2009, 05:20 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Question erased yum.conf by forced yum-update in RHEL5.3, need help

$yum list yum
yum.noarch 3.2.22-0 installed
$yum repolist all
repo id repo name status
dag Dag RPM Repository for RHEL enabled
epel Extra Packages for EL 5 -x86_64 enabled
epel-testing Extra Packager for EL 5 - Testing - x86_64 disabled
rhel-debuginfo RHEL 5Client - x86_64 - Debug enabled
rpmforge RHE 5Client - - dag enabled

BUT: the default rhn channels in the yum.conf file have been erased
in the forced yum update! I cannot find them anymore even though
they must be similar to the one in rhel-debuginfo. Can anyone help, please? Also, in the Gnome Top Panel System-Tools pull-down menu, the
Graphic Software updater has gone. However, the package viewer is still

$cat /etc/issue
Red Hat Enterprise Linux Client release 5.3 (Tikanga)
Kernel \r on an \m

$cat /proc/version
Linux version 2.6.18-128.1.6.el5 ( (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Tue Mar 24 12:05:57 EDT 2009

P.S. Originally, I believe it was yum-3.2.21-0 installed by default.
P.P.S. I am assuming they should be in yum.conf because those in yum/repos.d are still there. However, in yum.conf is empty where they should be and it has been rewritten in the installation:
§more yum.conf

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum/repos.d

Old 04-20-2009, 06:46 PM   #2
Senior Member
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Contact your RHEL rep, that is what you are paying for. He should be able to get you back up in a few minutes.
Old 04-20-2009, 07:37 PM   #3
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76

The comment in the file you posted suggests that they should either be in yum.conf or in yum/repos.d, not both. Are you sure that there is something missing? I have access to a RHEL-5.3 machine registered with RHN and it doesn't show any repositories in yum.conf.

Check for a file named yum.conf.rpmsave; if yum has updated the configuration file through an update then it should have saved a copy of the backup.

If you're not pulling updates from the Red Hat Network then you might also try running /usr/sbin/rhn_register again.

The menu item might be hidden; right-click on the top level menu to reconfigure it. Otherwise the package for it could be uninstalled (I don't know which package off-hand but you should be able to find it in the package viewer).

Hope that helps,

— Robert J Lee.
Old 04-21-2009, 04:33 AM   #4
LQ Newbie
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
thanks, downgrading solved my problem

Thank you all three for your pointers. Looking in the general references
didn't help me much; also, I spent two hours on the rhn pages trying to
file a webticket and then a bugzilla bug, but in vain, I guess I'm too
computer-illiterate. The only time I called a customer rep, they told
me that my system was preinstalled by the computer vendor and I should
ask them....

To the 3rd and very kind replier: I forced the installation from a tar.gz
which I had downloaded from the duke yum repository. I did it several times untill it succeeded - I had first to uninstall the old yum with rpm -ef.... Therefore, there was no yum.conf.rpmsave.... I have one now
after deinstalling the new yum and downloading the old one again from rhn. The new rhn-channels that I additionally selected are incidentally not in the yum.conf.rpmsave but they seem to be in etc/yum/pluginconf.d

Hope that helps others that are as careless as I to cut off the branch they're sitting on.....
Best regards, Mark
P.S. the original yum from RHEL5.3 is apparently 3.2.19-18.el5

Last edited by curiocurio; 04-21-2009 at 04:39 AM. Reason: resolved, downgrading was solution, thanks


downgrade, repositories, rhn, yumconf

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can yum override an exclusion in the /etc/yum.conf directory eodchop Fedora 3 12-05-2013 06:44 PM
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-03-2010 12:42 AM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 08:28 AM
FC2 yum updated to 2.1.11 need new yum.conf? peregrine2 Linux - Newbie 1 12-02-2004 08:14 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 03:28 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:45 AM.

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