Using the yum utility, one can install groups of packages.
In this case, the Development Tools is the group of interest, but it can apply to any other group of packages.
The ISO image, whether virtually or physically present on disk, needs to be set up to be accessed as a repository.
- Create a mountpoint to which the ISO image will be mounted:# mkdir /mnt/iso
- Mount the ISO image:REMARQUE : In this case /dev/scd0 points to an iLO virtual media device mapped to an ISO image. But it easily could be a physical DVD or other standalone ISO.# mount -o loop,ro /dev/scd0 /mnt/iso
- Verify the contents of the mount point:[root@dl380g7h08u06 yum.repos.d]# ls /mnt/isoCluster README-mr.html RELEASE-NOTES-kn.html RELEASE-NOTES-U6-ja.htmlClusterStorage README-or.html RELEASE-NOTES-ko.html RELEASE-NOTES-U6-kn.html...README-ja.html RELEASE-NOTES-gu.html RELEASE-NOTES-U6-fr.html RPM-GPG-KEY-redhat-releaseREADME-kn.html RELEASE-NOTES-hi.html RELEASE-NOTES-U6-gu.html ServerREADME-ko.html RELEASE-NOTES-it.html RELEASE-NOTES-U6-hi.html TRANS.TBLREADME-ml.html RELEASE-NOTES-ja.html RELEASE-NOTES-U6-it.html VT
- Edit the file /etc/yum.repos.d/file.repo to point to the newly mounted ISO and specific Server and/or VT directory on the ISO.This file will be read whenever yum is invoked and should have contents similar to the following:# cat file.repo[RHEL_5_ISO_Server_Repository]name=RHEL 5 ISO Repositorybaseurl=file:///mnt/iso/Serverenabled=1
- Check the repository list using yum repolist and verify the new ISO repository is listed:[root@dl380g7h08u06 yum.repos.d]# yum repolistLoaded plugins: rhnplugin, securityRHEL_5_ISO_Server_Repository | 1.3 kB 00:00RHEL_5_ISO_Server_Repository/primary | 905 kB 00:00RHEL_5_ISO_Server_Repository 3229/3229repo id repo name repo statusRHEL_5_ISO_Server_Repository RHEL 5 ISO Repository enabled: 3,229...
- Check the available groups in the repository to confirm the desired package group is listed:# yum grouplistLoaded plugins: rhnplugin, securitySetting up Group ProcessRHEL_5_ISO_Server_Repository/group | 1.0 MB 00:00Installed Groups: Administration Tools Authoring and Publishing...Available Groups: Development Tools DNS Name Server...Done
- Finally, use the command yum groupinstall to install the desired package group:# yum groupinstall "Development Tools"
No comments:
Post a Comment