Friday, March 20, 2009

How to install extra packages on Fedora10 from DVD

By default Fedora 10 will install any new packages from internet even though we have Media like DVD or iso image on harddisk.
To add or remove software a graphical tool is provided with fedora10. If you want install through command line yum package is available. Both will try to install packages from internet by default.

So to get install from the other media following are the steps to be followed..
  1. Login to fedora 10 and Open a terminal. If you are not logged in as root, use 'su' command to login as a root. It asks you root password. Once you enter your terminal will login as root.
    [root@fedora ~]# su
  2. Change working directory to /etc/yum.repos.d/
    [root@fedora ~]# cd /etc/yum.repos.d/
  3. Check the files using 'ls' command. It should list the following files
    fedora-rawhide.repo fedora.repo fedora-updates.repo fedora-updates-testing.repo
  4. Take a backup of these files. I have done backup by creating a backup folder in that directory.
    [root@fedora /etc/yum.repos.d/]# mkdir backup
    [root@fedora /etc/yum.repos.d/]# cp ./*.* backup
  5. Now make sure you DVD mounted or not. If it is mounted normally the name will be as follows Fedora 10 i368 DVD and the mounted drive will be accessed from /media/Fedora 10 i368 DVD/
  6. Now edit the 'fedora.repo' by using any editor. I normally uses 'vi' editor. Just comment the first two lines shown below and add a third line in the file.
    #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
    baseurl=file:///media/Fedora%2010%20i386%20DVD/
    and then save and close the file.
  7. Now edit the 'fedora-updates.repo'. In this file just make the change enabled=0.
  8. Make sure in the other two files also has enabled=0.
And now you can install the packages from the Media like DVD.

For installing packages go through this link

No comments:

Post a Comment