Good to Know Database

CentOS 6: Meine /etc/yum.repos.d/CentOS-Base.repo


Zuerst sollten Sie sich die original Konfigurationsdatei CentOS-Base.repo sichern.

[root@centos6 ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.original

Anschließend erstellen Sie sich Ihre persönliche Konfigurationsdatei.

[root@centos6 ~]# vi /etc/yum.repos.d/CentOS-Base.repo

Fügen Sie die folgenden Zeilen in die CentOS-Base.repo ein.

Hinweis: Hier wird ein lokaler Mirror des CentOS 6 Repository verwendet (siehe hierzu Shell Skript: CentOS 6.2 Mirror Script).

# 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
enabled=1
baseurl=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
enabled=1
baseurl=ftp://mirror.home.lan/pub/linux/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
enabled=0
baseurl=ftp://mirror.home.lan/pub/linux/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
enabled=0
baseurl=ftp://mirror.home.lan/pub/linux/centos/$releasever/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
enabled=0
baseurl=ftp://mirror.home.lan/pub/linux/centos/$releasever/contrib/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


Dieser Eintrag wurde am 19.05.2012 erstellt und zuletzt am 24.01.2016 bearbeitet.

Direkter Link zu dieser Seite: http://www.gtkdb.de/index_33_1620.html

[ Zur Startseite ]   [ Zur Kategorie ]


Valid XHTML 1.0 Transitional Valid CSS Valid Atom 1.0

© 2004-2018 by Georg Kainzbauer