Just installed RHEL 6.1 and i have 0 repositories

Jeronimo Calvo jeronimocalvop at hush.com
Mon Oct 24 20:05:43 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Jeronimo Calvo
jeronimocalvop at hush.com



On 24 Oct 2011, at 19:55, Maxime Alarie wrote:

> Thanks for the quick reply,
> 
> The file is empty..
> 

Create a new repo file.

rhel6.repo

and add the following:

=================

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

=================================


After that do the following:


yum clean all
yum update
you should accept the gpg keys from the centos repo.
try your new repo with:

yum list


Cheers,

Jero
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJOpcUXAAoJEGNDE5xD5Cq4E1YIAN2tDBSuZt2Jeb37kTwKQ7fB
nNyf271pB+kvMQKl9FzvYuAgvi5fmvZ/TkY54xbyYYaH/Ne/QG9w7XFLpmI1v35b
XDA8e2WO9FJYCIR+IJTPGzol6ZtZVgUhgQ/UZJBhjk6+OkK7r5AAKi42UFVvTUJO
49kQvUjbAY7N1yGVRLkbV5CqTfYHOO1wzn12G/Je/xfzJpx2m0HQIU5ZPfuKwKaz
X2DWCd0/DVCEExft5bW6WDQNBaEvltX5eAXfIC2WueBVbV0W04I8uMghuPmnmvav
OgZF5TuZL+CmvPy9KXu2Ou2lq88XQTqqVNbrYH1xWmDVEkYTBnWYuMKcR4Z0pZw=
=wfui
-----END PGP SIGNATURE-----



More information about the users mailing list