CentOS 5: Meine /etc/yum.repos.d/CentOS-Base.repo
Zuerst sollten Sie sich die original Konfigurationsdatei CentOS-Base.repo sichern.
[root@centos5 ~]# 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@centos5 ~]# 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 5 Repository verwendet (siehe hierzu Shell Skript: CentOS 5.8 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=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
enabled=1
baseurl=ftp://mirror.home.lan/pub/linux/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#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=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#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=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#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=ftp://mirror.home.lan/pub/linux/centos/$releasever/contrib/$basearch/RPM-GPG-KEY-CentOS-5
#
# 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=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
enabled=1
baseurl=ftp://mirror.home.lan/pub/linux/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#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=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#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=ftp://mirror.home.lan/pub/linux/centos/$releasever/os/$basearch/RPM-GPG-KEY-CentOS-5
#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=ftp://mirror.home.lan/pub/linux/centos/$releasever/contrib/$basearch/RPM-GPG-KEY-CentOS-5
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_1617.html
[ Zur Startseite ] [ Zur Kategorie ]
© 2004-2021 by Georg Kainzbauer