CentOS 163 yum源使用
2012-11-05 14:34
344 查看
使用163 yum源
1.进入http://mirrors.163.com/.help/centos.html下载CentOS-Base-163.repo, 放入/etc/yum.repos.d/
2.运行yum makecache生成缓存
3.yum search softwarename 查找软件
4.yum list softwarename 列出已装软件
5.yum install softwarename 安装软件
6.yun remove softwarename 卸载软件
(sohu yum源: http://mirrors.shou.com,使用方法相同)
使用光盘yum源
1.挂载光盘
mount -t iso9660 -o loop /dev/cdrom /media/CentOS
2.移除/etc/yum.repos.d目录原有的repo文件
3.创建新repo文件
vi /etc/yum.repos.d/CentOS-Media.repo
加入如下字段:
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
4.刷新repos
yum makecache
参考 /etc/yum.repos.d/CentOS-Media.repo文件
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
转载:http://hi.baidu.com/wenxuann/item/7b8d8a05a8581d8a03ce1b6f
1.进入http://mirrors.163.com/.help/centos.html下载CentOS-Base-163.repo, 放入/etc/yum.repos.d/
2.运行yum makecache生成缓存
3.yum search softwarename 查找软件
4.yum list softwarename 列出已装软件
5.yum install softwarename 安装软件
6.yun remove softwarename 卸载软件
(sohu yum源: http://mirrors.shou.com,使用方法相同)
使用光盘yum源
1.挂载光盘
mount -t iso9660 -o loop /dev/cdrom /media/CentOS
2.移除/etc/yum.repos.d目录原有的repo文件
3.创建新repo文件
vi /etc/yum.repos.d/CentOS-Media.repo
加入如下字段:
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
4.刷新repos
yum makecache
参考 /etc/yum.repos.d/CentOS-Media.repo文件
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
转载:http://hi.baidu.com/wenxuann/item/7b8d8a05a8581d8a03ce1b6f
相关文章推荐
- CentOS 6.3 使用163 yum源
- Centos更换yum源,使用国内163源
- centos使用163 yum源
- centos使用163 yum源
- RHEL6使用163网站CentOS的对应版本作为yum源
- 6、CentOS搭建本地Yum源以及使用163的Yum源
- 在centos架设yum源和使用163的源
- 使用CentOS网易yum源(非原创,转载来自http://www.centos.bz/2011/11/centos-163-yum-repo/)
- Red Hat 5使用CentOS 163 yum源
- centos 6.0 修改本地光盘作为yum源 使用更新的国内镜像源
- RedHat Enterprise Linux 6.4使用Centos 6 的yum源
- centos 7 yum源文件配置详解及163 yum源更换
- CentOS 6.0下使用光盘做为yum源
- RedHat Enterprise Linux 6.X 使用Centos 6 的yum源
- Centos6.0使用第三方YUM源(EPEL,RPMForge,RPMFusion)
- Centos安装配置高本版的LAMP(使用yum源)
- centos 5的yum源无法使用的解决方法
- RedHat和CentOS使用本地yum源配置
- RHEL6.5使用CENTOS的YUM源
- RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源