Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.