centos yum 源
来源:互联网 发布:聚合数据如何调试接口 编辑:程序博客网 时间:2024/06/05 02:44
修改/etc/yum.repos.d/CentOS-Base.repo为
[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt ← 导入非官方库的GPG
新建文件
#vi /etc/yum.repos.d/utterramblings.repo #
文中这里是使用nano,但VPS不能启动nano,用vi代替也是可以的
在打开的文档中加入下面内容:
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
保存。
- centos yum 源
- CentOS yum源
- Centos yum 源
- CentOS yum源
- CentOS 增加 yum 源
- centos yum 源
- 修改CentOS yum源
- centos yum 命令 源
- CentOS 5.5 yum源
- centos yum源
- Centos 更新YUM源
- centos Yum源 配置
- centos 4.8 yum源
- Centos 6.2 yum源
- centos更改yum源
- centos YUM源
- CentOS配置yum源
- centos 各种yum源
- 利用尾注插入参考文献
- C++中在输入密码的时候显示星号的方法
- ServerVariables環境變數
- SQL2005自动定时备份数据库并按日期命名
- mytest
- centos yum 源
- Spring事务配置的五种方式
- 真正对你好的才叫“朋友”
- 递归读取树状配置文件
- 千度检索与语言处理实验平台--开幕片
- RUNONCE和RUN的区别
- Lighttpd < 1.4.23 Source Code Disclosure Vulnerability (BSD/Solaris bug)
- PHP <= 5.2.9 Local Safemod Bypass Exploit (win32)
- 按指定的字符把字符串分割为字符串数组