Saturday, August 22, 2009

Fedora DVD == Yum Repository

Last night i corrupted out my Xorg ,and was left in the 'Black World' of run-level 3. While trying to re-install it through YUM the N/W went out [all bad against me]. So had no other option than to install the xorg server though the Fedora DVD that i had.

Trying my hands to configure the DVD as the source for YUM was a great experience ,though it was much simple task.

Better to go step by step[Everything as a super user] :
1. All of the repositories configuration files under /etc/yum.repos.d/ were backed up and placed under a new directory created /etc/yum.repos.d/back-up/
#mv /etc/yum.repos.d/* /etc/yum.repos.d/back-up/
2. A new file 'dvd.repo' was created under /etc/yum.repos.d/ that will act as the configuration file for the new repository to be created with source as the Fedora DVD.
3. The file 'dvd.repo' was opened up in vi editor and following lines were added in there

and the file was saved.
PS : make sure that there is no other file under /etc/yum.repos.d/ except the 'dvd.repo'
4. The DVD was inserted in the dvd rom.
5. Fedora does mounts the DVD or any inserted media in runlevel 5 [GUI mode] and all such is available under /media/ directory ,but the case was not same here in run level 3.
6. I had to locate the dvd ,which was later located under /dev/cdrom ,having the soft link to
/dev/cdrom -> sr0
7. The dvd was to be mounted manually under /media/ in this case ,in order to make the repo file baseurl sync with the location of the DVD.Which was done using
#mount /dev/cdrom /media/
8. All was done now,the presence of the DVD under /media/,was verified using the long listing of the directory.
9. Tried out using yum,with following command and the packages were located well
#yum install xorg* -y
10. Once the installation was done,the system was rebooted passing out
# init 6
11. The system booted up under xorg ,with all GUI back...


Post a Comment