LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing more packages from a dvd after default installation (https://www.linuxquestions.org/questions/linux-newbie-8/installing-more-packages-from-a-dvd-after-default-installation-497769/)

husham 11-01-2006 11:56 PM

Installing more packages from a dvd after default installation
 
I installed fedora core5 from a dvd. I did not select the custom packages at the time of installation. Now i want to install KDE Desktop. How can i install more packages from the dvd. Add/ remove software does not open. It shows an error message like access denied.

smaudlin 11-02-2006 12:12 AM

something is wrong with your install then cause when open add/remove it should prompt you for root password and then continue on.

husham 11-02-2006 01:04 PM

i just read sumwhere that i have to change sumthing repositries. i read that when you open add/remove package then by default it tries to connect to the net. I have to change that path. i have to provide the path of the dvd in the place of that internet adress. That i don't know how.

pixellany 11-02-2006 01:54 PM

Go to /etc and look for yum.conf and yum.repos.d (This is what I have in RHEL4--I'm guessing that Fedora is similar.

Sam The Damn 11-03-2006 02:12 AM

The Fedora Add/Remove Program, “Pirut” uses the standard command line version of yum as the backend. Yum itself uses a set of repositories to search for components which are to be installed. In the recent releases of Fedora, default yum repositories are internet URLs, therefore, yum cannot work without internet connection. Some people would like to install some packages from the installation media (CD/DVD) without internet connection. For example you’ve just installed FC5 and now you decide to install MySQL from the installation DVD. One way is to copy .rpm files related to MySQL and all dependencies and then use rpm command from terminal to work it out. Another more modern solution is to edit yum repositories so that it does not need internet connection and at last use Add/Remove programs. The following steps describe how to do it. Remember! Before changing anything, make a back-up.

1. Creating DVD image from the installation DVD (you can do it with CDs too):
I think if you like to use Add/Remove programs; you are rather interested in windows approach than Linux command line approach. So, the recommended freeware for creating ISO images of DVDs is MagicISO. Copy the created ISO file to FC5 partitions.

2. Mounting the DVD image:
Use this command to mount DVD image to a dedicated directory:
# mount –o loop /dvd-images/FC5.iso /fedora-dvd
For auto-mounting you can edit /etc/fstab file to mount the DVD image automatically as the system boots.

3. Editing yum repositories:
Open file browser and locate /etc/yum-repos. There are some .repo files each containing records for introducing websites which are used as source for installing new components by yum. You must set enabled in all files and all records to ‘0’ except one in fedora core repository. The first ‘baseurl’ must be set as the address where the DVD image is mounted (/fedora-dvd).

[core]
name=Fedora Core $releasever - $basearch
baseurl=file:///fc5dvd
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

(Sorry for too long message)


All times are GMT -5. The time now is 05:45 AM.