Friday, February 24, 2012

CentOS: Install Packages Via yum Command Using DVD / CD / ISO as Repo

How to install packages from CD/DVD/ISO using yum command under CentOs5/RHEL5

Step 1# create directory mount cd






we can mount iso using following command
# mount -t iso9660 centos.iso /media/cdrom 

Step 2# edit "/etc/yum.repos.d/CentOS-Media.repo" file and make following changes









Step 3# move Base repo to other location
# mv /etc/yum.repos.d/CentOS-Base.repo /root/

Step 4# now we can install from yum
# yum install screen -y

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.