yum 源

三个 fedora 16的远程源

1. sohu源:

[fedora]
name=Fedora $releasever - $basearch - sohu.com
failovermethod=priority
baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-debuginfo]
name=Fedora $releasever - $basearch - Debug - sohu.com
failovermethod=priority
baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source - sohu.com
failovermethod=priority
baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/source/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

2.163

http://mirrors.163.com/.help/fedora.html有163源repo文件的下载。

[Fedora-mirrors.163.com]
name=Fedora 16 – i386
baseurl=http://mirrors.163.com/fedora/updates/16/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[Everything-mirrors.163.com]
name=Everything 16 – i386
baseurl=http://mirrors.163.com/fedora/updates/16/i386/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
[updates-mirrors.163.com]
name=Fedora updates
baseurl=http://mirrors.163.com/fedora/updates/16/i386/
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

注意上面的是update的地址,导致每次重启后用yum都会更新Everything-mirrors.163.com/primary_db和Fedora-mirrors.163.com/primary_db,两个接近8M,浪费不少时间和带宽,平时不需要添加update源。

3. sjtu

[Fedora-ftp.sjtu.edu.cn]
name=Fedora 16 – i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/16/Fedora/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[Everything-ftp.sjtu.edu.cn]
name=Everything 16 – i386
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/releases/16/Everything/i386/os/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[updates-ftp.sjtu.edu.cn]
name=Fedora updates
baseurl=http://ftp.sjtu.edu.cn/fedora/linux/updates/16/i386/
enabled=0
gpgcheck=0


RPM-Fusion:

由于版权等原因,不少软件包不包含在官方源中,rpm fusion是额外的补充

配置参考:http://rpmfusion.org/Configuration/


本地DVD:

4. fedora-dvd

修改fstab开机挂载fedora 16的iso文件;

挂载点:/media/fedora-dvd

[iso]
name=fedora-dvd
baseurl=file:///media/fedora-dvd
gpgkey=file:///media/fedora-dvd/RPM-GPG-KEY-fedora-i386
enabled=1


local repository:

完整下载远程镜像,建立local repository,大小大概30G。

5. 参考:How To Set Up A Local Yum Repository On Fedora 8 

Fedora 15 and 16:

su -c 'yum localinstall --nogpgcheck http://fr2.rpmfind.net/linux/rpmfusion/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://fr2.rpmfind.net/linux/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

插件:

启用插件,/etc/yum.confi中,令plugins=1

yum-priority

在.ropo相应的条目中加入,priority=N (N为1到99的正整数,数值越小越优先),加入之后,高优先级的源中的源抑制低优先级的源。

yum-fastestmirror



你可能感兴趣的:(File,UP,plugins)