Monday, May 15, 2006

Problems faced in Fedora Core 5 for Adding and Removing Software.

I had finished downloading the new Fedora Core 5 a few days back and was very excited to try it out. The installation went off very smoothly and was very pleasing to my eyes. The operating system loading was very fast and I presume it took half the time it used to be in Fedora Core 4.

The problem with the system was the Add/Remove program (Pirut) in Fedora Core 5. It connects to the internet for adding any package or updating it. In my country the internet connectivity is a costly affair. So to make Pirut use the local packages in my CDs, I created a directory /var/yum/Fedora/RPMS and copied all the rpms in the CD nos. 1,2,3,4 and 5 to the folder /var/yum/Fedora/RPMS and the repodata folder in 1st disk to /var/yum/ folder.

Then I edited the file named fedora-core.repo in /etc/yum.repo.d/ and inserted few lines like

[Fedora-Core-5-local-install]
name=Fedora Core $releasever - $basearch
baseurl=file:///var/yum
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

and changed all the other enabled=1 to enabled=0 in this file and all the files with *.repo in /etc/yum.repos.d/ and then I have been able to install packages using Add/Remove Software (Pirut) ever since.

Please note :- Don't forget to copy repodata folder in FC 5 disk 1 or you would be seeing repomd.xml error.

3 comments:

ikp said...

Arindam,

Thanks for your step by step instructions. They work!

The only question I have is how to do future updates and new installs that are not included in FC5 cds. Still assumption is that Linux machine does not have internet connection. Do I just download rpm and modify repomd.xml file? Can you shed some light on how to do that?

Thank you,
ikp

vsekhar said...

Hi! Arindam
it's o k with your step by step instructions to work with add/remove program.
But why the problem arises? Isn't it possible to make changes to installed programs through add/remove programme as we do generally instead of copying whole rpms to machine?

bloogsense said...

Thank,
I believe it will work, i've being looking for this solution for long

Bobby