CentOS yum不能用
来源:互联网 发布:linux chown -x -r 编辑:程序博客网 时间:2024/04/29 17:45
修改/etc/yum.repos.d/Centos-Base.repo
# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead.##[base]name=CentOS-$releasever - Base - 163.combaseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#released updates [updates]name=CentOS-$releasever - Updates - 163.combaseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updatesgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that may be useful[extras]name=CentOS-$releasever - Extras - 163.combaseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extrasgpgcheck=1gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus - 163.combaseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplusgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6#contrib - packages by Centos Users[contrib]name=CentOS-$releasever - Contrib - 163.combaseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contribgpgcheck=1enabled=0gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
文件免费下载地址:http://download.csdn.net/detail/chenyiming_1990/7032825
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base] //唯一标识的名称
name=CentOS-$releasever - Base //所使用的.repo文件的名字
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#mirrorlist 是由 yum 程式自行去捉映射站台, baseurl 则是指定固定的一個容器网址
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
#其中url支持的协议有 http:// ftp:// file://三种。baseurl后可以跟多个url,你可以自己改为速度比较快的镜像站,但baseurl只能有一个
gpgcheck=1 #gpg签名检查
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#gpg密钥的位置,应指定本机的密钥文件只有可以与服务器上的密钥进行校验。
#released updates
#该段指向的路径是软件升级时需要的软件包
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
//该路径对应服务器上的update文件夹,即自动到服务器updates文件夹里找软件包
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
#该段指向的路径是已经使用了或者已经制作出来的软件,但并没有发行
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
#该段指向的路径是可能有用的其他的软件
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
#该段指向的路径是已经存在的软件的扩展软件、插件等等
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0 #enabled=0表示这个源停用 如果enabled不写 表示enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
#contrib - packages by Centos Users
#该段指向的路径是系统使用者所贡献的软件
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
- CentOS yum不能用
- centos上yum命令不能用了解决方案
- 解决redhat自带yum不能用的问题 (使用CentOS)
- 解决redhat自带yum不能用的问题 (借用CentOS)
- centos 5 yum 不能用出现all mirror URLs are not use ftp http or file
- centos下安装python2.7.1 以及装完后 yum 不能用的问题
- yum不能用-超简单将Centos的yum源更换为国内的阿里云源
- CentOS安装mplayer不能用
- centos make命令不能用解决
- 让CentOS能用yum自动安装rar和unrar
- 解决python升级后yum不能用的问题
- 解决redhat自带yum不能用的问题
- 解决redhat自带yum不能用的问题
- 解决redhat自带yum不能用的问题
- 解决Linux国内yum源不能用的问题
- 解决redhat自带yum不能用的问题
- centos yum 只下载包 不安装
- 进入CentOS后发现很多命令不能用解决办法
- Unique Binary Search Trees II
- 经典智力题:飞机加油问题
- 利用 org.apache.commons.io.FileUtils快速读写文件
- 设置 windows 大小写敏感
- 【从零单排之二】科大讯飞语音包Mscdemo的使用
- CentOS yum不能用
- 我的编码守则
- 生产者_消费者
- tbr tbn tbc 的意思
- Android未使用的资源文件查找工具
- 三、导入csv格式的excel
- Poj 3253 Fence Repair(哈夫曼树)
- IE11 与 XPath
- 运行时刻的存储管理