rhel6.2 本地yum源搭建
2013-07-25 22:16
399 查看
1、创建文件local.repo
# mount /dev/cdrom /media/
mount: block device /dev/sr0 is write-protected, mounting read-only
3、清除yum缓存文件
# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Repository rhel-source is listed more than once in the configuration
Cleaning repos: rhel-source
Cleaning up Everything
4、然后就可以用yum进行安装了
本文出自 “桃花雪” 博客,谢绝转载!
# cat /etc/yum.repos.d/local.repo [rhel-source] name=Red Hat Enterprise Linux LOCAL YUM baseurl=file:///media/Server enabled=1 gpgcheck=1 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release gpgkey=file:///media/RPM-GPG-KEY-redhat-release2、把光盘挂载到/media目录下
# mount /dev/cdrom /media/
mount: block device /dev/sr0 is write-protected, mounting read-only
3、清除yum缓存文件
# yum clean all
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Repository rhel-source is listed more than once in the configuration
Cleaning repos: rhel-source
Cleaning up Everything
4、然后就可以用yum进行安装了
本文出自 “桃花雪” 博客,谢绝转载!
相关文章推荐
- RHEL6.2配置本地yum源和第三方源
- CentOS 5/RHEL 5下搭建本地YUM源
- RHEL7环境下搭建本地yum源
- RHEL6.6环境下搭建本地yum源(Nginx版)
- rhel5.5快速搭建本地yum源
- RHEL6.2服务器本地yum源配置
- RHEL5下部署kickstart系统和搭建本地yum源 详细步骤
- 快速搭建RHEL5.9本地yum源
- RHEL 6.2配置本地yum源
- 【APP】CentOS 5/RHEL 5下搭建本地YUM源
- RHEL 6.2配置本地yum源
- RHEL 6.2配置本地yum源
- RHEL 6.2配置本地yum源
- [zz]RHEL 6.2配置本地yum源
- rhel搭建本地yum源
- RHEL6.4 和centos5.8搭建本地yum源
- RHEL 6.2配置本地yum源
- RHEL6搭建本地yum源
- linux下配置本地yum源快速搭建LAMP环境
- CentOS搭建本地光盘YUM源