rhel5.4 配置光盘yum源

在/etc/yum.repos.d目录下新建一个repo文件,如dvd.repo。
内容如下
[Cluster]
enabled = 1
name = dvd
baseurl = file:///media/RHEL_5.4%20x86_64%20DVD/Cluster
gpgcheck = 1
gpgkey = file:///media/RHEL_5.4%20x86_64%20DVD/RPM-GPG-KEY-redhat-release

[ClusterStorage]
enabled = 1
name = dvd
baseurl = file:///media/RHEL_5.4%20x86_64%20DVD/ClusterStorage
gpgcheck = 1
gpgkey = file:///media/RHEL_5.4%20x86_64%20DVD/RPM-GPG-KEY-redhat-release

[Server]
enabled = 1
name = dvd
baseurl = file:///media/RHEL_5.4%20x86_64%20DVD/Server
gpgcheck = 1
gpgkey = file:///media/RHEL_5.4%20x86_64%20DVD/RPM-GPG-KEY-redhat-release

[VT]
enabled = 1
name = dvd
baseurl = file:///media/RHEL_5.4%20x86_64%20DVD/VT
gpgcheck = 1
gpgkey = file:///media/RHEL_5.4%20x86_64%20DVD/RPM-GPG-KEY-redhat-release


“开始菜单>添加删除程序”或使用命令“yum install ...”来安装新软件

你可能感兴趣的:(C++,c,redhat,C#)