linux上配置yum源指向本地iso文件
来源:互联网 发布:ug8.0编程视频 编辑:程序博客网 时间:2024/05/16 05:50
--1、挂载本地iso文件到/mnt/cdrom,如果没有该目录创建一下
mount -o loop /soft/rhel-server-6.4-x86_64-dvd.iso /mnt/cdrom
--2、新建repo文件参数如下:
[root@test ~]# cd /etc/yum.repos.d/
[root@test yum.repos.d]# more public-yum-el5.repo
[rhel6]
name = RHEL6.4
baseurl=file:///mnt/cdrom/Server/
gpgcheck=0
enabled=1
--3、保存退出,测试yum是否ok,如果如下所示,说明已配好,可以使用yum命令安装包了
[root@test yum.repos.d]# yum list gcc
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel6 | 3.9 kB 00:00 ...
Installed Packages
gcc.x86_64
mount -o loop /soft/rhel-server-6.4-x86_64-dvd.iso /mnt/cdrom
--2、新建repo文件参数如下:
[root@test ~]# cd /etc/yum.repos.d/
[root@test yum.repos.d]# more public-yum-el5.repo
[rhel6]
name = RHEL6.4
baseurl=file:///mnt/cdrom/Server/
gpgcheck=0
enabled=1
--3、保存退出,测试yum是否ok,如果如下所示,说明已配好,可以使用yum命令安装包了
[root@test yum.repos.d]# yum list gcc
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel6 | 3.9 kB 00:00 ...
Installed Packages
gcc.x86_64
0 0
- linux上配置yum源指向本地iso文件
- linux上配置yum源指向本地iso文件
- Linux下挂载iso文件和配置yum本地源
- linux 配置iso 文件为本地yum源
- Linux下挂载iso文件和配置yum本地源
- CentOS使用iso镜像文件配置本地yum源
- Linux 配置iso系统盘为本地yum源
- oracle linux 7.3 配置本地ISO yum 源
- 利用本地iso文件创建yum源
- centos iso文件配置local yum源
- CentOS配置本地yum源(使用镜像iso文件)
- shell编程挂载iso镜像文件并配置本地yum源
- Redhat enterprise linux 6 beta 中的iso本地源yum服务的配置
- Linux 7挂载iso文件yum源
- 使用iso镜像配置本地yum源
- 将一个iso文件做为本地yum源
- 用iso文件快速搭建本地临时yum源
- Linux配置本地yum源
- NUC.2015.秋.队内训练赛-第一场
- Objective-C Foundation框架实践——NSMutableArray(一)
- 在Spring中缓存applicationContext
- Java学习笔记:继承与多态
- 最全的电脑快捷
- linux上配置yum源指向本地iso文件
- 仿QQ圆头像裁剪开源项目——ClipCircleHeadLikeQQ
- tomcat学习笔记之catalina.sh
- USACO 3.1 Humble Numbers
- 打印1到最大的n位数
- linux dd命令测试硬盘读写速度
- jsp、css文件一直红线警告- javax.servlet.jsp cannot be resolved 的解决办法
- ##S3C2440串口##
- 啊啊大大