To install packages through DVD we need to have appropriate Fedora DVD mounted in the system. Once the DVD is mounted you have two options to install the packages from your DVD.
First, using the YUM option called localinstall. Go to the path from your terminal (to know what a terminal is check my other post here) where you have mounted your DVD. This usually should be /media/Fedora 11 i386 DVD. Replace 11 with your version of Fedora. Now go to the directory called Packages.
cd "/media/Fedora 11 i386 DVD/Packages"Note that you have to use inverted comas. Now from here invoke this command:
yum localinstall RPM_filename.rpmYou can install a particular rpm file if you know or you can just give *.rpm in place of the RPM_filename.
This procedure will try to access the internet for any dependencies. For that the first thing you have to do is to disable the repos. To do this you should know what all repos have been enabled.
yum repolistThis will give you a list of repos with repo id, repo name and status. All you need is the repo id and use this command.
yum --disablerepo=fedora,livna,updates localinstall *.rpm --skip-brokenThe --skip-broken option will exclude all packages with depsolving problems. Means those which have dependency problems. This should work with all versions of Fedora. the main drawback of this option is that you should know the particular package name. Or you can use meta-character if you dont know the exact name.
Second, and the most recommended option is by using a repo for DVD. YUM installs packages by checking the repo file. To know what a repo file is you have to check the content of an already existing repo file. Go to the repo directory of YUM.
cd /etc/yum.repos.d/You will get a list of repo files with the extension .repo. Now use your choice of editor to create a repo file for DVD. I recommend using vi editor.
vi dvd.repoYou can give any name for this file which should end with .repo extension. Now type these line (or better copy paste it).
name=DVD for Fedora- $releasever - $basearch
baseurl=file:///media/Fedora%20$releasever%20$basearch%20DVD/
enabled=1
gpgcheck=0
The best thing about using this second way is that you can use all the option related to YUM. Example you can use the groupinstall option which you cannot use it with the first way. Again I stress the point that you use an internet connection to keep yourself updated to the latest changes in the world.
In case you have any problems installing the packages through YUM please revert back. I will try my best to solve it.
Happy YUMming!!! :)
0 comments:
Post a Comment