RedHat 5.5 光盘作yum源

来源:互联网 发布:python web源码 编辑:程序博客网 时间:2024/06/06 03:20

1.最精简安装 RedHat 5.5 系统
2.安装yum

# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom/Server
a. 安装依赖库
# rpm -ivh python-elementtree-1.2.6-5.i386.rpm
# rpm -ivh python-iniparse-0.2.3-4.el5.noarch.rpm
# rpm -ivh python-sqlite-1.1.7-1.2.1.i386.rpm
# rpm -ivh rpm-python-4.4.2.3-18.el5.i386.rpm
# rpm -ivh m2crypto-0.16-6.el5.6.i386.rpm
# rpm -ivh python-urlgrabber-3.1.0-5.el5.noarch.rpm
# rpm -ivh yum-metadata-parser-1.1.2-3.el5.i386.rpm
b. 安装yum
# rpm -ivh yum-3.2.22-26.el5.noarch.rpm
3.修改yum源
vi /etc/yum.repos.d/rhel-debuginfo.repo
查看源代码
打印帮助
1    [rhel-debuginfo]
2    name=Red Hat Enterprise Linux $releasever - $basearch - Debug
3    baseurl=file:///mnt/cdrom/Server
4    enabled=1
5    gpgcheck=1
6    gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

# yum clean all

原创粉丝点击