Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1296183
  • 博文数量: 436
  • 博客积分: 7854
  • 博客等级: 少将
  • 技术积分: 3225
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-18 16:30
文章分类

全部博文(436)

文章存档

2013年(2)

2012年(56)

2011年(70)

2010年(308)

分类:

2011-07-30 14:21:45

I have a RHEL5 DVD but it is difficult to install a package using rpm because I need to manually add all dependent packages. Here is now I create a Yum reposiroty so that I can use yum to install these packages. Note that the DVD is automatically mounted as /media/RHEL_5.1 x86_64 DVD.

> cd /media/RHEL5_5.1\\ x86_64\\ DVD/Client
> rpm -ihv createrepo-0.4.4-2.fc6.noarch.rpm
> cd /home/blah/some_dir
> createrepo -vpo /home/blah/some_dir /media/RHEL5_5.1\\ x86_64\\ DVD
> cd /home/blah/some_dir
> ln -s /media/RHEL5_5.1\\ x86_64\\ DVD/Client Client
> ln -s /media/RHEL5_5.1\\ x86_64\\ DVD/Workstation Workstation

Then create a file /etc/yum.repos.d/DVD.repo with the following content

[dvd]
name=RHEL4 DVD
baseurl=file:///home/blah/some_dir
enabled=1
gpgcheck=0

Run

> yum clean all
> yum update

and you are done.

阅读(1757) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~