centos使用光盘作为本地的yum源
来源:互联网 发布:wps表格查找相同数据 编辑:程序博客网 时间:2024/06/05 04:39
把光盘加载到本地
[root@localhost CentOS]# mount /dev/cdrom /media
在/etc/yum.repos.d/目录下,有两个文件
CentOS-Base.repo和CentOS-Media.repo
其中CentOS-Base.repo记录着网络上的yum源的地址和路径信息等
CentOS-Media.repo记录着可以从本地作为yum源的介质和路径。其中还有这样一个说明:
# 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/
file:///media/ #增加这句
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta
编辑完成后保存,执行以下命令,
[root@centos cdrom]# yum --disablerepo=* --enablerepo=c5-media update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
c5-media 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 834 kB 00:00
################################################## 2400/2400
No Packages marked for Update/Obsoletion
基本上就OK了,然后模糊安装吧
[root@centos cdrom]# yum --disablerepo=* --enablerepo=c5-media install gc*
免得差文件
下面的问题没有遇到,不知道网上说的是否正确
在使用yum进行install时,经常会出现下面的错误
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1ac70ce6
导致安装不能进行。解决方法如下:
[root@localhost CentOS]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[root@localhost CentOS]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-beta
在安装GNOME桌面时可以这样:
[root@svn CentOS]# yum --disablerepo=* --enablerepo=c5-media install xorg*
[root@svn CentOS]# yum --disablerepo=* --enablerepo=c5-media groupinstall "GNOME Desktop Environment"
发生错误:Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto
错误解决办法,执行rpm -Uvh --nodeps nautilus-sendto-0.7-5.fc6.i386.rpm安装。
[root@localhost CentOS]# mount /dev/cdrom /media
在/etc/yum.repos.d/目录下,有两个文件
CentOS-Base.repo和CentOS-Media.repo
其中CentOS-Base.repo记录着网络上的yum源的地址和路径信息等
CentOS-Media.repo记录着可以从本地作为yum源的介质和路径。其中还有这样一个说明:
# 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/
file:///media/ #增加这句
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta
编辑完成后保存,执行以下命令,
[root@centos cdrom]# yum --disablerepo=* --enablerepo=c5-media update
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
c5-media 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 834 kB 00:00
################################################## 2400/2400
No Packages marked for Update/Obsoletion
基本上就OK了,然后模糊安装吧
[root@centos cdrom]# yum --disablerepo=* --enablerepo=c5-media install gc*
免得差文件
下面的问题没有遇到,不知道网上说的是否正确
在使用yum进行install时,经常会出现下面的错误
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1ac70ce6
导致安装不能进行。解决方法如下:
[root@localhost CentOS]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
[root@localhost CentOS]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-beta
在安装GNOME桌面时可以这样:
[root@svn CentOS]# yum --disablerepo=* --enablerepo=c5-media install xorg*
[root@svn CentOS]# yum --disablerepo=* --enablerepo=c5-media groupinstall "GNOME Desktop Environment"
发生错误:Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto
错误解决办法,执行rpm -Uvh --nodeps nautilus-sendto-0.7-5.fc6.i386.rpm安装。
0 0
- centos使用光盘作为本地的yum源
- centos使用光盘作为本地的yum源
- CentOS使用光盘作为本地的Yum源
- centos使用光盘作为本地的yum源
- 使用rhel5的DVD光盘作为本地yum源
- centos6.5使用光盘作为本地的yum源
- CentOS使用光盘作为本地源
- CentOS使用光盘作为本地源
- CentOS使用本地光盘做yum源
- RHEL YUM 本地光盘作为yum源
- 使用DVD光盘或者ISO作为本地YUM源
- rhel5的DVD光盘作为本地yum源
- CentOS搭建本地光盘YUM源
- 合并 CentOS 6.5 的两个 DVD 作为本地 YUM 源
- 合并 CentOS 6.5 的两个 DVD 作为本地 YUM 源
- centos镜像作为本地源的yum安装
- 使用CentOS光盘镜像作为YUM源安装rpm软件包
- 使用CentOS光盘镜像作为YUM源安装rpm软件包
- 经纬财富:包头怎么炒现货白银
- 我爱我家
- ObjectARX学习笔记(二十一)-----如何获得当前视图向量
- 淘金网云交换通讯系统
- 使用HTML5构建iOS原生APP
- centos使用光盘作为本地的yum源
- 异常处理中的finally语句块在什么情况不执行?
- java出现no XXX in java.library.path的解决办法
- OpenGL: 基础篇
- 除非 Windows Activation Service (WAS)和万维网发布服务(W3SVC)均处于运行状态,否则无法启动网站。IIS 7
- linux下proc里关于磁盘性能的参数
- Hessian 原理分析
- 判断站点访问的终端类型(移动端还是pc端)的方法
- SQL Server Profiler工具