Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:

HOWTO: Upgrade to Fedora Core 2 - Test1, with apt.

by Gavin Henry on March 08, 2004.

I am not responsible for anything that goes wrong or any damages that may occur to your system!!! And please, please, please, for the sake of your sanitiy, read this through completely, backup all your vital data, and think hard if you really want to upgrade. ;-)


Well, warnings aside, let's begin.

As you all know Test1 is out and has been for a few weeks. I have waited a while for things to settle down and all the gotchas to surface, before doing an upgrade. So here is MY method of upgrading from Fedora Core 1 > Fedora Core 2 - Test1.

Option 1: Initial package upgrades:

Download the following packages:

Then in the directory you saved them in: rpm -Fvh *.rpm Now, move onto "Choosing your repositories for optimum downloads:"

Option 2: Recompiling apt:

From a mailing list post mentioned in this months newsletter, it becomes clear that you can also rebuild the apt RPM, which is the way I did it. Don't ask me why ;-)

So, grab the apt src.rpm from the official Fedora repository, and then issue: rpmbuild --rebuild /path/to/the/rpm/apt-0.5.15cnc5-0.fdr.10.1.90.src.rpm This will take a while depending on your setup etc.

Installing apt:

Once recompiled, simply install it with: rpm -Uvh apt*.rpm

For more info about the wealth of RPM commands, see Alexandre's RPM page.

Keep an eye out for any files in /etc/apt/ with *.rpmnew extensions, as these will be from the new apt install. Move them as appropriate e.g:

mv /etc/apt/rpmpriorities /etc/apt/rpmpriorities.old
mv /etc/apt/rpmpriorities.rpmnew /etc/apt/rpmpriorities

If there are any conflicts with the apt RPM package upgrade, then simply: apt-get remove packagename Or: rpm -e packagename

Keep a record of the names you remove, so that you can reinstall them later, if needed.

All that's left is adding your sources.

The first time you run apt-get nowadays, due to the nice new features, you get a text menu asking which sources you want etc., much like Debians apt. Answer the questions by hitting the right numbers, then continue — 'c'.

I had to switch off GPG-signature checking with apt, as for some reason, even after importing the Testing key, which you can download here, it didn't like the signatures. Edit /etc/apt/apt.conf and uncomment this line: GPG-Check "false";

Choosing your repositories for optimum downloads:

The quickest way to do this is: apt-get mirror-select

We would like to find more mirrors. So if you find any, please let me, Warren Togami or Panu Matilainen know.

I picked a good one close to the UK.

Your /etc/apt/sources.list should look something like this:

# Please choose the nearest mirror
#Fedora 2 Test1 stable - Official
#rpm fedora/fedora/1.90/i386 os stable testing unstable
#rpm-src fedora/fedora/1.90/i386 os stable testing updates
#Fedora 2 Test1 - Spanish mirror, due to UK one slow updating.
rpm fedora/fedora/1.90/i386 os stable testing unstable
rpm-src fedora/fedora/1.90/i386 os stable testing unstable

Once you have picked a good one, issue:

apt-get update


apt-get dist-upgrade

Any duplicate packages or any other gotchas, like duplicate packages, can be handled by editing or uninstalling them ;-)


Issuing for detailed options:

man apt.conf

My upgrade results:

When I issued a: apt-get dist-upgradeI got: