- 论坛徽章:
- 0
|
我的是2.6.15-1.2054_FC5
把/etc /yum.repo.d文件夹中的文件全部移走,在该文件夹中建立名为*.repo的文件(即/etc/yum.repo.d/*.reop)。其文件内容如下:
[freshrpms]
name=Freshrpms
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/ayo.freshrpms.net/pub/freshrpms/ayo/fedora/linux/5/i386/freshrpms
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[linva]
name=linva
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/5/i386
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[livnadev]
name=livna
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/i386
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[linvatest]
name=linva
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/5/i386
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[CDROM]
name=cdrom
baseurl=file:///mnt/cdiso
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[core]
name=core
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[coreupdates]
name=core-updates
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[coreupdatestesting]
name=core-updates-testing
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/i386
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[coredevelop]
name=core-development
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/development/i386/
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
[extras]
name=develop
baseurl=ftp://202.38.97.230/sites/fedora.redhat.com/linux/extras/5/i386
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=0
保存可以了
几点说明:我的系统是将安装盘景象mount到了/mnt/cdiso下,默认状态下enable=0,就是不开启这个景象,如果你想安装你景象上的东西的话就改成enable=1就可以了
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/18211/showart_105784.html |
|