centos中yum采用光盘为软件安装源
来源:互联网 发布:人工智能从入门到精通 编辑:程序博客网 时间:2024/05/29 18:55
在某些环境下不能访问外网,这时采用完全版光盘为安装源也是一个选择,
环境:CentOS release 5.5 (Final)
1,挂载系统盘(DVD版CentOS-5.5-i386-bin-DVD.iso)光驱:
mkdir /media/cdrommount /dev/cdrom /media/cdrom
2,保留安装库文件:
/etc/yum.repos.d/CentOS-Media.repo
# 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 - Mediabaseurl=file:///media/cdrom/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
3,测试yum安装源:
[root@localhost cdrom]# yum --enablerepo=c5-media info vsftpdLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileInstalled PackagesName : vsftpdArch : i386Version : 2.0.5Release : 16.el5_4.1Size : 285 kRepo : installedSummary : vsftpd - 非常安全 Ftp 守护进程URL : http://vsftpd.beasts.org/License : GPLDescription: vsftpd 是一个非常安全 FTP 守护进程。它是完全从零开始 : 编写的。
4,常用yum命令:
删除CentOS5的图形界面软件包:
yum --enablerepo=c5-media --disableplugin=fastestmirror groupremove "GNOME Desktop Environment"
yum --enablerepo=c5-media --disableplugin=fastestmirror groupremove "X Window System"
安装中文环境语言相关包:
yum --enablerepo=c5-media --disableplugin=fastestmirror groupinstall "chinese-support"
特定组件包信息yum groupinfo xxxx
所有可用组件包信息yum grouplist xxxx
软件相关安装信息yum info xxx
搜寻给定字串的软件yum search xxx
删除一个软件yum erase xxx
安装一个软甲yum install xxx
详细见yum --help
0 0
- centos中yum采用光盘为软件安装源
- Centos配置安装光盘为yum源
- Centos 以光盘为yum源安装
- 修改yum源为本地光盘 安装软件
- centos设置yum源为光盘源
- [centos]设置光盘为yum源
- centos yum源配置为光盘
- Centos中搭建光盘yum源
- CentOS 6 修改yum源为本地光盘
- CentOS配置光盘yum源
- 搭建CentOS光盘yum源
- centos 采用yum 安装nginx
- Centos中利用光盘建立本地yum源
- Centos 中 yum 安装或者卸载软件
- 配置yum源为光盘
- centos6.2修改yum的源为安装光盘
- linux 修改yum安装源为本地光盘
- linux 修改yum安装源为本地光盘
- Java学习知识合集
- C/C++中枚举类型enum使用
- MATLAB学习笔记
- 静态方法与实例方法
- MongDB
- centos中yum采用光盘为软件安装源
- DrawerLayout使用
- Codeforces-719A-Vitya in the Countryside
- MongDB基础学习(一)
- vs2010 LINK : fatal error LNK1123: 转换到 COFF 期间失败:
- python函数参数介绍
- ubuntu命令
- MongDB基础学习(二)
- 详解alloc、init 自定义初始化方法