Pages

Friday, January 20, 2012

CentOS5 - Installing Softwares From Installation Media

Requirement :

  1. Installation Media (DVD or ISO)
  2. Brain
Mounting Media DVD or ISO
Create the directory to mount.
mkdir -p /media/CentOS
Mount DVD to created directory, if you are using DVD.
mount -t auto /dev/cdrom /media/CentOS
Mount ISO to created directory, if you are using ISO.(assuming ISO file is in /root/ directory)
mount -t iso9660 -o loop  /root/CentOS-5.7-i386-bin-DVD-1of2.iso /media/CentOS
Installing softwares from mounted DVD or ISO 
Update YUM database
yum --disablerepo=\* --enablerepo=c5-media update
Search and Install Software
yum --disablerepo=\* --enablerepo=c5-media search nmap
yum --disablerepo=\* --enablerepo=c5-media install nmap -y
CONGRATULATION! 


Oops! I almost forget. Here is how to unmount the media
umount /media/CentOS

 

 
 

No comments:

Post a Comment