LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 04-20-2009, 04:20 PM   #1
curiocurio
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 - RPMforge.net - 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
there.

$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 (mockbuild@ls20-bc2-14.build.redhat.com) (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
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1


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

$
 
Old 04-20-2009, 05:46 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
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, 06:37 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
curiocurio,

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, 03:33 AM   #4
curiocurio
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 03:39 AM. Reason: resolved, downgrading was solution, thanks
 
  


Reply

Tags
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 05:44 PM
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 07:28 AM
FC2 yum updated to 2.1.11 need new yum.conf? peregrine2 Linux - Newbie 1 12-02-2004 07:14 AM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM


All times are GMT -5. The time now is 08:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration