Solution 1 : Use your DVD directly without creating any repo
- Mount the ISO file
# mkdir /media/cdrom
# mount /dev/sr0 /media/cdrom - Create config file
# vi /etc/yum.repos.d/iso.repo
[dvd]
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0 - Run the command
# yum install --enablerepo=dvd packagename
- Step # 1: Mount an ISO file
# rpm -i createrepo*
# mkdir /media/cdrom
# mount /dev/sr0 /media/cdrom - Step # 2: Create a repository
# mkdir /tmp/repo
# cd /mnt/iso
# createrepo -o /tmp/repo . - Step # 3: Create config file
# vi /etc/yum.repos.d/iso.repo
Append following text:
[ISO Repository]
baseurl=file:///media/cdrom
enabled=1
# yum install package-name
No comments:
Post a Comment