RHEL5/6 加载 DVD yum源
来源:互联网 发布:淘宝不开发票怎么办 编辑:程序博客网 时间:2024/06/08 11:53
RHEL 5.8 加载 DVD yum源
[root@localhost Server]# pwd/media/RHEL_5.8 x86_64 DVD/Server
[root@localhost Server]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ll
total 16
-rw-r--r-- 1 root root 205 Apr 26 17:23 redhat-dvd.repo
-rw-r--r-- 1 root root 190 Apr 26 17:23 redhat.repo
-rw-r--r-- 1 root root 254 Jan 24 2012 rhel-debuginfo.repo
[root@localhost yum.repos.d]# vi redhat-dvd.repo
[redhat-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///media/RHEL_5.8%20x86_64%20DVD/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@localhost yum.repos.d]# yum repolist
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
rhel-dvd-Server | 1.5 kB 00:00
rhel-dvd-Server/primary | 920 kB 00:00
rhel-dvd-Server 3285/3285
repo id repo name status
rhel-dvd-Server Red Hat Enterprise Linux x86 - Server
file路径内不能出现空格,空格需用%20代替,否则会出现以下报错。
[root@localhost yum.repos.d]# vi redhat-dvd.repo
redhat-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///media/RHEL_5.8 x86_64 DVD/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Options Error: Error parsing 'file:///media/RHEL_5.8 x86_64 DVD/Server': URL must be http, ftp, file or https not ""
使用转义符\,空格需用%20代替,否则会出现以下报错。
[root@localhost yum.repos.d]# vi redhat-dvd.repo
redhat-dvd]
name=Red Hat Enterprise Linux $releasever - $basearch - DVD
baseurl=file:///media/RHEL_5.8\ x86_64\ DVD/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: katello, product-id, security, subscription-manager
Updating certificate-based repositories.
Options Error: Error parsing 'file:///media/RHEL_5.8\\ x86_64\\ DVD/Server': URL must be http, ftp, file or https not ""
RHEL 6.4 加载 DVD yum源
[root@llocalhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.7G 2.9G 6.3G 32% /
tmpfs 2.4G 372K 2.4G 1% /dev/shm
/dev/sda1 1008M 60M 898M 7% /boot
/dev/sda5 67G 12G 52G 19% /u01
/dev/sr0 3.5G 3.5G 0 100% /media/RHEL_6.4 x86_64 Disc 1
[root@localhost ~]# cd /media/RHEL_6.4\ x86_64\ Disc\ 1/
[root@localhost RHEL_6.4 x86_64 Disc 1]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# vi redhat-dvd.repo
[rhel-media]
name=Red Hat Enterprise Linux 6.2 #自定义名称
baseurl=file:///media/RHEL_6.4\ x86_64\ Disc\ 1/ #本地光盘挂载路径
enabled=1 #启用yum源,0为不启用,1为启用
gpgcheck=1 #检查GPG-KEY,0为不检查,1为检查
gpgkey=file:///media/rhel/RPM-GPG-KEY-redhat-release #GPG-KEY路径
清除yum缓存,使用yum install自动安装软件
[root@localhost yum.repos.d]# yum clean all #清除yum缓存
[root@localhost ~]# yum install php #安装php
- RHEL5/6 加载 DVD yum源
- 使用rhel5的DVD光盘作为本地yum源
- rhel5的DVD光盘作为本地yum源
- RHEL5.1DVD 、RHEL4.6-DVD下载
- rhel5 配置yum源笔记
- RHEL5架设本地yum源
- 配置rhel5.5 yum源
- rhel5配置centos yum源
- 制作本地DVD yum源
- rhel 6 beta设置yum源为DVD
- RHEL5 使用 ISO 文件作为 YUM 源
- rhel5 下yum安装源配置
- RHEL5本地yum源的简单配置
- RHEL5中修改yum安装软件源
- RHEL5 配置YUM源 安装RZSZ
- rhel5 用163的centos yum源
- rhel5.x 光盘yum源配置
- rhel5.8 ISO yum源配置
- 数据标准化方法
- 单例模式
- Apache+PHP开发环境的配置
- Android 服务类Service 的详细学习
- 实验室项目日志
- RHEL5/6 加载 DVD yum源
- 序列化之-----transient
- mongodb 限制ip访问
- 【算法逻辑】保持字符串内符号位置不变,其他字符随机变化
- 使用Apache POI读取Excel文件,将读取的数据转换成json写入文本文件
- 欢迎使用CSDN-markdown编辑器
- redmine安装包数据库连接
- 集成融云Android SDK实现在群聊/讨论组中@人的功能(一)
- xshell 中 alt+. 快捷键无法使用