Q : How to use repo from CD ??
We can use this repo and yum to install items directly off the DVD ISO that we release in this way.
# vi /etc/yum.repos.d/rhel-cd.repo
Make sure enabled is set to 1:
enabled=1
Save and close the file.
To use repo put your DVD and along with the other repos, enter:
# yum --enablerepo=c5-media install pacakge-name
To only use the DVDmedia repo, do this:
# yum --disablerepo=\* --enablerepo=c5-media install pacakge-name
OR use groupinstall command
# yum --disablerepo=\* --enablerepo=c5-media groupinstall 'Virtualization'
Good luck ;)
We can use this repo and yum to install items directly off the DVD ISO that we release in this way.
# vi /etc/yum.repos.d/rhel-cd.repo
rhel-
cd
]
name=Red Hat Enterprise Linux $releasever - $basearch - CD
baseurl=
file
:
///media/RHEL/Server/
enabled=1
gpgcheck=0
Make sure enabled is set to 1:
enabled=1
Save and close the file.
To use repo put your DVD and along with the other repos, enter:
# yum --enablerepo=c5-media install pacakge-name
To only use the DVDmedia repo, do this:
# yum --disablerepo=\* --enablerepo=c5-media install pacakge-name
OR use groupinstall command
# yum --disablerepo=\* --enablerepo=c5-media groupinstall 'Virtualization'
Good luck ;)
0 komentar:
Posting Komentar