LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Reverting to RHN up2date (https://www.linuxquestions.org/questions/linux-enterprise-47/reverting-to-rhn-up2date-535371/)

grayloon 03-07-2007 08:29 AM

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.

fooks 03-07-2007 09:25 AM

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.

clintdavis 03-08-2007 07:04 AM

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?:confused:

fooks 03-10-2007 08:09 AM

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

grayloon 03-19-2007 07:00 AM

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


fooks 03-20-2007 09:59 AM

try to check and reinstall redhat-release package:

# rpm -qf /etc/sysconfig/rhn/sources
redhat-release-4ES-2

grayloon 03-20-2007 10:44 AM

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


fooks 03-21-2007 06:39 AM

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


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