全部博文(139)
分类: LINUX
2006-11-10 20:04:14
对于Fedora,首先修改yum的软件源,使用速度比较快的国内镜像。按照以下修改/etc/yum.repos.d目录的下面fedora-core.repo,fedora-extras.repo和fedora-updates.repo这几个文件:
#/etc/yum.repos.d/fedora-core.repo
[core]
name=Fedora Core $releasever - $basearch - Base
#baseurl=
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
#baseurl=
#mirrorlist=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
#/etc/yum.repos.d/fedora-extras.repo
[extras]
name=Fedora Extras $releasever - $basearch
#baseurl=
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
#baseurl=
#mirrorlist=
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
gpgcheck=1
#/etc/yum.repos.d/fedora-updates.repo
[updates]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch
#baseurl=
#mirrorlist=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
然后建议加上freshrpms这个软件源(这个源包括了mp3插件,Mplayer,BmpX,aMule,unrar等等)。 首先以root用户运行如下命令导入密钥:
rpm --import
然后在/etc/yum.repos.d目录里新建一个freshrpms.repo文件,内容如下:
[freshrpms]
name=Fedora Core $releasever - $basearch - Freshrpms
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/ayo.freshrpms.net/pub/freshrpms/ayo/fedora/linux/$releasever/$basearch/freshrpms/
#baseurl=
#mirrorlist=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
最后建议加上livna这个软件源(这个源包括了MP3插件,Mplayer,Totem-xine,NTFS插件等等)。首先以root用户运行如下命令导入密钥:
rpm --import
然后在/etc/yum.repos.d目录里新建一个livna.repo文件,内容如下:
[livna]
name=Livna for Fedora Core $releasever - $basearch - Base
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/$releasever/$basearch/
failovermethod=priority
#mirrorlist=
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-LIVNA-GPG-KEY