LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 03-07-2007, 08:29 AM   #1
grayloon
LQ Newbie
 
Registered: Mar 2007
Location: Indiana
Distribution: CentOS
Posts: 6

Rep: Reputation: 0
Exclamation Reverting to RHN up2date


I'm new to linux, and I've probably goofed up my system a bit. I'm using RHEL ES4, and I tried to change the repositories for updating my system when I wanted to upgrade MySQL. I played with yum a bit and also tried to use the CentOS repo. I followed some instructions to use CentOS from someone's blog, but I can't remember the link.

How can I get my system back to the default RHN up2date configuration? When I click the update icon next to the date in the upper right corner of the desktop, it opens CentOS Network Alert Notification Tool instead of Red Hats update tool. When I click the "launch up2date" button, I get the CentOS Update Agent.
 
Old 03-07-2007, 09:25 AM   #2
fooks
Member
 
Registered: Jan 2007
Location: Ukraine
Posts: 47

Rep: Reputation: 15
It looks like you have installed up2date package from CentOS distro.

[root@cp ~]# rpm -qf `which up2date`
up2date-4.4.5-1

Try to remove it and install up2date package for your RHEL4.
 
Old 03-08-2007, 07:04 AM   #3
clintdavis
LQ Newbie
 
Registered: May 2006
Location: Indiana
Distribution: RHEL 4
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by fooks
It looks like you have installed up2date package from CentOS distro.

[root@cp ~]# rpm -qf `which up2date`
up2date-4.4.5-1
Yep. Here's what I get:

[root@grayloon]# rpm -qf `which up2date`
up2date-4.4.69-25.centos4.7


Quote:
Try to remove it and install up2date package for your RHEL4.
I'd love to! How do I do that?
 
Old 03-10-2007, 08:09 AM   #4
fooks
Member
 
Registered: Jan 2007
Location: Ukraine
Posts: 47

Rep: Reputation: 15
1. remove this package from system:

# rpm -e up2date-4.4.69-25.centos4.7

2. find up2date-x.x.x.rpm package on distro CD/DVD or on rpm.pbone.net or wherever else, copy it to /tmp and run :

# rpm -ivvh /tmp/up2date-x.x.x.rpm
 
Old 03-19-2007, 07:00 AM   #5
grayloon
LQ Newbie
 
Registered: Mar 2007
Location: Indiana
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Progress!

I got up2date installed, but I'm getting a new error.
Code:
up2date --showall
There was an error downloading: http://apt.sw.be/redhat/el4/en/i386/dag/headers/qcset-0-0.5.1-1.rhel3.dag.i686.hdr
There was an error downloading: http://apt.sw.be/redhat/el4/en/i386/dag/headers/qcset-0-0.5.1-1.rhel3.dag.i686.hdr
There was an error downloading: http://apt.sw.be/redhat/el4/en/i386/dag/headers/qcset-0-0.5.1-1.rhel3.dag.i686.hdr
There was an error downloading: http://apt.sw.be/redhat/el4/en/i386/dag/headers/qcset-0-0.5.1-1.rhel3.dag.i686.hdr
There was an error downloading: http://apt.sw.be/redhat/el4/en/i386/dag/headers/qcset-0-0.5.1-1.rhel3.dag.i686.hdr
An error has occurred:
exceptions.UnboundLocalError
See /var/log/up2date for more information
My /etc/sysconfig/rhn/sources file has some old data in it. If I want to use the default RHN repo, what should I change?
Code:
### This describes the various package repositories (repos) that up2date will
### query for packages. It currently supports apt-rpm, yum, and "dir" repos.

### Format is one repository (repo) entry per line, # starts comments, the
### first word on each line is the type of repo.

### The default RHN (using "default" as the url means use the one in the
### up2date config file). This is required.
#up2date default

### Note: when a channel label is required for the non up2date repos,
### the label is solely used as an internal identifier and is not
### based on the url or any other info from the repos.

### An apt style repo (the example is arjan's 2.6 kernel repo).
### The format is:
### type  channel-label      service:server         path        repo name
#apt arjan-2.6-kernel-i386 http://people.redhat.com ~arjanv/2.5/ kernel

### Note: for apt repos, there can be multiple repo names specified (space
### seperated).

### A yum style repo. The format is:
### type  channel-label     url
#yum fedora-core-development http://download.fedora.redhat.com/pub/fedora/linux/core/development/$ARCH/

### A local directory full of packages (a "dir" repo). For example:
#dir my-favorite-rpms /var/spool/RPMS/

# Multiple versions of all repos except "up2date" can be used. Dependencies
# can be resolved "cross-repo" if need be.

#yum centos4-Base http://mirror.centos.org/centos/4/os/$ARCH/
#yum centos4-Updates http://mirror.centos.org/centos/4/updates/$ARCH/
#yum centos4-extras http://mirror.centos.org/centos/4/extras/$ARCH/
#yum centos4-contrib http://mirror.centos.org/centos/4/contrib/$ARCH/
#yum centos4-addons http://mirror.centos.org/centos/4/addons/$ARCH/
#yum centos4-centosplus http://mirror.centos.org/centos/4/centosplus/$ARCH/

### Dag RPM Repository for Red Hat Enterprise Linux
yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag
yum dag http://apt.sw.be/redhat/el3/en/$ARCH/dag

Last edited by grayloon; 03-19-2007 at 08:42 AM.
 
Old 03-20-2007, 09:59 AM   #6
fooks
Member
 
Registered: Jan 2007
Location: Ukraine
Posts: 47

Rep: Reputation: 15
try to check and reinstall redhat-release package:

# rpm -qf /etc/sysconfig/rhn/sources
redhat-release-4ES-2
 
Old 03-20-2007, 10:44 AM   #7
grayloon
LQ Newbie
 
Registered: Mar 2007
Location: Indiana
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fooks
try to check and reinstall redhat-release package:

# rpm -qf /etc/sysconfig/rhn/sources
redhat-release-4ES-2
When I run this command, I get
Code:
centos-release-4-4.2
How do I change/reinstall it? My up2date config file has the following. What should it be?
Code:
noSSLServerURL[comment]=Remote server URL without SSL
noSSLServerURL=http://www.centos.org/XMLRPC
 
Old 03-21-2007, 06:39 AM   #8
fooks
Member
 
Registered: Jan 2007
Location: Ukraine
Posts: 47

Rep: Reputation: 15
try to reinstall it the same way you did it for up2date package - delete this one, then download new package and install it.
 
  


Reply

Tags
centos, repositories, rhel, rhn, up2date



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
How to uninstall RHN up2date? concoran Linux - General 1 09-11-2005 07:42 PM
up2date, rhn, and yum johnMG Fedora 7 07-28-2005 08:18 PM
[SOLVED] Fedora core 3 and RHN up2date pheedalop Fedora - Installation 5 03-08-2005 03:25 PM
Security of rhn and up2date thetwin Linux - Security 4 09-14-2003 05:02 PM
up2date rhn applet glock19 Linux - Distributions 4 12-03-2002 12:18 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:29 PM.

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