LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can Redhat's 6.0 ".iso" image be used for obtaining the packages folder from it. (https://www.linuxquestions.org/questions/linux-newbie-8/can-redhats-6-0-iso-image-be-used-for-obtaining-the-packages-folder-from-it-902184/)

guptaaditya24@gmail.com 09-09-2011 02:04 PM

Can Redhat's 6.0 ".iso" image be used for obtaining the packages folder from it.
 
I don't have Redhats CD but I have its image in ISO format. Can it be used for obtaining the 'Packages' folder required to create a yum server. Please help.
I dont have CD Rom in my LAPTOP, therefore I cant write a CD from that image. Thus Help me with some option.

colucix 09-09-2011 02:15 PM

You can mount the iso image using the -o loop option, then act as it would be a mounted CD. You need to edit the /etc/yum.repos.d/Redhat-Media.repo (not sure about the name, since I have CentOS 6) and set the baseurl key to point to the correct location. You can leave enabled=0 in the configuration file above and use
Code:

yum --enablerepo=r6-media install package
again, not sure about the name of the repository, but you can see it in the aforementioned file. Hope this helps.

guptaaditya24@gmail.com 09-09-2011 02:36 PM

Thank you for the earliest response. I'll try.


All times are GMT -5. The time now is 04:22 AM.