سلام
برای اضافه کردن repository جدید کافیست پکیج آنرا دانلود و نصب کنید:
یکسری از ریپازیتوری های قبلی رو move کنین تا زمان زیادی برای نصب پکیج ها طول نکشه
لیست ریپازیتوری ها در مسیر /etc/yum.repo.d/ قرار دارند که پسوندشون .repo هستند. با افزودن repo بالا فایلهای زیر هم در مسیری که گفتم اضافه میشن:
rpmforge.repo
mirrors-rpmforge
mirrors-rpmforge-extras
mirrors-rpmforge-testing
شما میتونین غیر از فایلهای بالا و دو فایل (CentOS-Base.repo و epel.repo) بقیه فایلها رو از این مسیر بردارین تا لحاظ نشن
محتوای فایل CentOS-Base.repo رو مانند زیر تغییر بدین :
و هممینطور در مورد فایل epel.repo
موفق باشید
برای اضافه کردن repository جدید کافیست پکیج آنرا دانلود و نصب کنید:
کد PHP:
wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.3-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.5.3-1.el5.rf.i386.rpm
لیست ریپازیتوری ها در مسیر /etc/yum.repo.d/ قرار دارند که پسوندشون .repo هستند. با افزودن repo بالا فایلهای زیر هم در مسیری که گفتم اضافه میشن:
rpmforge.repo
mirrors-rpmforge
mirrors-rpmforge-extras
mirrors-rpmforge-testing
شما میتونین غیر از فایلهای بالا و دو فایل (CentOS-Base.repo و epel.repo) بقیه فایلها رو از این مسیر بردارین تا لحاظ نشن
محتوای فایل CentOS-Base.repo رو مانند زیر تغییر بدین :
کد PHP:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# 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=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=redhat-logos
#released updates
enabled=1
[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=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=redhat-logos
#packages used/produced in the build but not released
enabled=1
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=redhat-logos
#additional packages that may be useful
enabled=1
[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=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=redhat-logos
#additional packages that extend functionality of existing packages
enabled=1
[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=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#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=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
کد PHP:
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 5 - $basearch - Debug
baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 5 - $basearch - Source
baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch
failovermethod=priority
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=1
کامنت