How to restore RHN up2date default config file for unsing REDHAT mirrors ?
Michael E Brown
Michael_E_Brown at dell.com
Tue May 15 09:45:16 CDT 2007
On Tue, May 15, 2007 at 03:25:23PM +0200, Florent Gilain wrote:
> Hi all,
>
> I have modifyed my up2date configuration file by using unofficial Dell yum
> repo system.
>
> Now, i need to go back and use again official redhat mirrors, but i really
> don't know how to do it...i was thinking that Dell repository were added to
> the list of mirrors, not that it was replacing it.
>
> did i missed something ?
No you are not missing anything. The dell repos do not ever replace
*any* configuration on your system. They simply *add* the dell
repositories.
>
> here is the content of my file under RHEL4ES :
>
> [root at s-extrade-bak ~]# cat /etc/sysconfig/rhn/sources
> ### 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
See, right here. This is the default RHN configuration. Unchanged from a
pristine install.
You are still connected to the default repositories.
>
> ### 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.
>
> #BEGIN dell-repository
> # This block is managed by the Dell-repository RPM.
> # Main unofficial Dell software repository.
> yum dell-software http://linux.dell.com/repo/software/el4/
> yum-mirror dell-software
> http://linux.dell.com/repo/software/mirrors.pl?osname=el4
>
> # Unofficial Dell beta software repository.
> # uncomment the following line to enable beta releases.
> # yum dell-testing http://linux.dell.com/repo/testing/el$releasever
> #END dell-repository
> yum dell-hardware-ven_0x1028_dev_0x01b3
> http://linux.dell.com/repo/hardware/system.ven_0x1028.dev_0x01b3/el4.$basear
> ch
> yum-mirror dell-hardware-ven_0x1028_dev_0x01b3
> http://linux.dell.com/repo/hardware/mirrors.pl?sys_ven_id=0x1028
> <http://linux.dell.com/repo/hardware/mirrors.pl?sys_ven_id=0x1028&sys_dev_id
> =0x01b3&osname=el4.$basearch&up2date_repo_autoconf=1.2.13>
> &sys_dev_id=0x01b3&osname=el4.$basearch&up2date_repo_autoconf=1.2.13
And you have the Dell repositories set up *in addition* to the default
repos.
If you wish to remove the dell repositories, simply remove the
dell-repository and dellhw-repository rpms (and their dependencies)
Keep in mind that doing this will make me very, very sad.
--
Michael
More information about the Linux-PowerEdge
mailing list