centos用ISO光盘镜像搭建本地yum源
来源:互联网 发布:神仙吃什么知乎 编辑:程序博客网 时间:2024/04/29 00:04
setup local repo for yum with DVD.iso file in CentOS system
+---------------------------------+
| for centos 6.6 |
+---------------------------------+
1. mount the DVD iso file
# mkdir /media/_local_repo_DVD1
# mount -o loop -t iso9660 CentOS-6.6-i386-bin-DVD1.iso /media/_local_repo_DVD1
2. backup the original repo files in /etc/yum.repos.d/
# mv CentOS-Base.repo CentOS-Base.repo.backup
use this method to backup all other repo files;
3. edit the empty file /etc/yum.repos.d/_local_DVD.repo
# vim /etc/yum.repos.d/_local_DVD.repo
-------------------------------------------------------
[_local_DVD_repo]
name=This is a local repo.
baseurl=file:///media/_local_repo_DVD1
# file:///media/_local_repo_DVD2
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=30
-------------------------------------------------------
4. refresh the cache for yum
# yum clean all
# yum makecache
when you install the software and warning you
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6"
please use
# rpmkeys --import/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
+---------------------------------+
| for centos 7.0-1406 |
+---------------------------------+
1. mount the DVD iso file
# mkdir /media/_local_repo_DVD1
# mount -o loop -t iso9660 CentOS-7.0-1406-x86_64-bin-DVD.iso /media/_local_repo_DVD
2. backup the original repo files in /etc/yum.repos.d/
# mv CentOS-Base.repo CentOS-Base.repo.backup
use this method to backup all other repo files;
3. edit the empty file /etc/yum.repos.d/_local_DVD.repo
# vim /etc/yum.repos.d/_local_DVD.repo
-------------------------------------------------------
[_local_DVD_repo]
name=This is a local repo.
baseurl=file:///media/_local_repo_DVD
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=30
-------------------------------------------------------
4. refresh the cache for yum
# yum clean all
# yum makecache
when you install the software and warning you
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7"
please use
# rpmkeys --import/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- centos用ISO光盘镜像搭建本地yum源
- CentOS使用iso镜像文件配置本地yum源
- CentOS搭建本地光盘YUM源
- 将光盘镜像CentOS-5.3-i386-bin-DVD.iso设置成为yum源
- CentOS 本地iso挂载并配置iso镜像作为yum源安装软件
- CentOS 6.2 挂载光盘本地yum镜像
- CentOS配置本地yum源(使用镜像iso文件)
- 搭建CentOS光盘yum源
- yum源修改为本地光盘镜像
- yum源修改为本地光盘镜像
- Linux搭载ISO镜像为本地yum源
- RHEL7利用iso镜像制作本地yum源
- 基于ISO镜像构建Yum本地源
- 使用iso镜像配置本地yum源
- linux 利用iso镜像制作本地yum源
- Linux虚机挂载ISO光盘镜像并配置yum
- CentOS使用本地光盘做yum源
- 内网挂载ISO镜像搭建yum源提供局域网安装
- 花开过——但不在雨季(灵感之作)
- OpenGL中的光照系列之一[基本理论]
- 论-大学生的恋爱
- cubietruck启动错误信息记录
- 2011年中国科学院院士增选初步候选…
- centos用ISO光盘镜像搭建本地yum源
- 好想娶你
- 本人 习惯用语
- 品味时尚 ——( 本人高三作文)
- 【中】【 国 】【悲 】【句】
- 已经失去你
- Jsp9大内置对象
- Android项目R文件丢失
- 【大学课程自学网站】