由于在教育网下不能上国外网站,所以我的fc6 无法无法更新,最近发现原来清华大学和上海交大有镜像,经过将近一天的配置,终于可以升级了。
我的配置如下:
1. 将/etc/yum.repos.d/下的已有更新源(repo文件)的enable改为0。为了方便起见,可以直接 mv /etc/yum.repos.d /etc/yum.repos.d.bak重命名,这样就让系统找不到原有的repo文件了。
2. 修改/etc/yum.conf文件,添加如下内容:
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[extras]
name=Fedora Extras $releasever - $basearch
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/extras/6/i386
enabled=1
[updates]
name=Fedora Core $releasever - $basearch - Updates
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/updates/6/i386
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
[core]
name=Fedora Core $releasever - $basearch
baseurl=ftp://ftp3.tsinghua.edu.cn/mirror/download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os
enable=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
这是fc6 的更新镜像
我还发现这里还有livna 和freshrpms 的镜像我的livna 设置如下:
新建yum.repos.d
#mkdir/etc/yum.repos.d
#cd /etc/yum.repos.d
#gedit 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=http://rpm.livna.org/mirrorlist-6
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
[livna-source]
name=Livna for Fedora Core $releasever - $basearch - Source
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/$releasever/SRPMS/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1
保存
#gedit livna-devel.repo
添加内容如下:
[livna-development]
name=Livna for Fedora Core $releasever - $basearch - Development Tree
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-development
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
[livna-development-debuginfo]
name=Livna for Fedora Core $releasever - $basearch - Development Tree - Debug
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/$basearch/debug/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1
[livna-development-source]
name=Livna for Fedora Core $releasever - $basearch - Development Tree - Source
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/development/SRPMS/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1
保存
#gedit livna-testing.repo
内容如下:
[livna-testing]
name=Livna for Fedora Core $releasever - $basearch - Testing
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/$releasever/$basearch/
failovermethod=priority
#mirrorlist=http://rpm.livna.org/mirrorlist-testing-6
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
[livna-testing-debug]
name=Livna for Fedora Core $releasever - $basearch - Testing - Debug
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/$releasever/$basearch/debug/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1
[livna-testing-source]
name=Livna for Fedora Core $releasever - $basearch - Testing - Source
baseurl=
ftp://ftp3.tsinghua.edu.cn/mirror/livna/fedora/testing/$releasever/SRPMS/
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-livna
gpgcheck=1
保存。
这样可以利用livna 安装软件了,遗憾的是freshrpms 的镜像我用尽了办法也没配置成功,哪们朋友成功了可以分亨一下。
Linux联盟收集整理
分享到:
相关推荐
RedHat Linux RHEL6配置本地YUM源
网络yum源的简单配置方法,一般安装好redhat后,不能注册的话,不能使用系统自带的yum源。但是我们可以自己配置yum源来解决这一问题。下面介绍下redhat配置163yum源。
从本地配置Yum源库,实现本地安装和卸载功能。
阿里CentOS6 yum源
[local_server] (库名称) name=This is a local repo (名称描述) ...baseurl=file:///mnt/cdrom (yum源目录,源地址) enabled=1(是否启用该yum源,0为禁用) gpgcheck=0(检查GPG-KEY,0为不检查,1为检查)
rhel配置新的yum源需要的安装包
centos 配置本地yum源库,很多版本都是为其他linux配置yum源库的教程,我使用的是centos,所以给出一些我自己配置的本地yum源库,基于centos
centos6_64 yum配置,一键搞定.centos6_64 yum配置,一键搞定
yum源配置yum源配置yum源配置
CentOS 7配置yum源
配置的时候,只需要将文档中的内容,复制到/etc/yum.repos.d/ CentOS-Base.repo中即可。
详细介绍了RPM包管理-yum在线管理-yum命令CentOS中的IP 配置,网络yum 源。并在CentOSt6中进行了详细演示,并附有截图。
有好多朋友使用linux redhat版本是不是还在为rpm包的安装而烦恼,yum工具的使用无意是解决这一难题的好工具,他可以解决包安装中依赖问题,但是对于redhat版本的系统来说如果想使用yum的在线安装功能是需要银子的,...
CentOS7配置本地yum源(超详细过程)
centos使用本地iso镜像方式配置yum源,使用网络方式配置网络yum源方法
redhat 6 配置 yum 源的两种方法,一种是用本地镜像文件做yum源,一种是在线设置yum源
centos9_StreamISO镜像及yum源配置文件和配置方法
yum源配置
redhat linux6.6上网易yum镜像源配置详情,适用于rh6所有版本
CentOS6停止支持后,原来的yum源不能用了。本文件经过测试,到2021年4月9日为止,CentOS6可用的YUM源配置文件