30 July 2009

Upgrading from a previous Fedora

One of the great new features is to be able to do a live upgrade from an older Fedora release to Fedora 11. You simply have to install the new package called preupgrade and run the program as root:

# yum -y install preupgrade
# preupgrade


Code :
[root@localhost ~]# yum -y install preupgrade
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package preupgrade.noarch 0:1.1.0-1.fc9 set to be updated
--> Processing Dependency: createrepo for package: preupgrade
--> Processing Dependency: anaconda-yum-plugins for package: preupgrade
--> Running transaction check
---> Package anaconda-yum-plugins.noarch 0:1.0-1.fc9 set to be updated
---> Package createrepo.noarch 0:0.9.6-3.fc9 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
preupgrade noarch 1.1.0-1.fc9 updates-newkey 94 k
Installing for dependencies:
anaconda-yum-plugins noarch 1.0-1.fc9 updates-newkey 11 k
createrepo noarch 0.9.6-3.fc9 updates-newkey 73 k

Transaction Summary
=======================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 177 k
Downloading Packages:
(1/3): anaconda-yum-plugins-1.0-1.fc9.noarch.rpm | 11 kB 00:00
(2/3): createrepo-0.9.6-3.fc9.noarch.rpm | 73 kB 00:00
(3/3): preupgrade-1.1.0-1.fc9.noarch.rpm | 94 kB 00:01
-----------------------------------------------------------------------
Total 43 kB/s | 177 kB 00:04
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : createrepo 1/3
Installing : anaconda-yum-plugins 2/3
Installing : preupgrade 3/3

Installed:
preupgrade.noarch 0:1.1.0-1.fc9

Dependency Installed:
anaconda-yum-plugins.noarch 0:1.0-1.fc9 createrepo.noarch 0:0.9.6-3.fc9

Complete!
[root@localhost ~]#
This process does take a LONG TIME, requires a high speed internet connection and has a couple minor gotchas but so far I've done a couple upgrades with no data loss and pretty much everything has "just worked" afterwards. You don't need to download and burn any ISOs as the upgrade is done on top of your current installation.

Available Fedora Releases :
  • Fedora 11 (Leonias)
  • Fedora 10 (Cambridge)

The computer do :
1. Download release info
2. Download installer images
3. Determine which packages to download
4. Download packages
5. Prepare and test upgrade

Total Volume : 1,6 GB

After the preupgrade script downloads a ton of packages it will reboot and begin the upgrade procedure automatically. Follow the instructions and after the upgrade is complete log back in and you'll have to fix a couple little things. One things is that you'll need to update the Livna repository file below and then clear the yum cache. Once you do that you'll have to do an update again and this time yum will automatically update any extra software you had installed from Livna with the previous version.

# rpm -Uhv http://rpm.livna.org/livna-release-9.rpm
# yum clean all
# yum -y update

Code :
[root@nms ~]# rpm -Uhv http://rpm.livna.org/livna-release-9.rpm
Retrieving http://rpm.livna.org/livna-release-9.rpm
warning: /var/tmp/rpm-tmp.ZWJfOi: Header V4 DSA signature: NOKEY, key ID a109b1ec
Preparing... ########################################### [100%]
1:livna-release ########################################### [100%]
[root@nms ~]# yum clean all
Loaded plugins: dellsysidplugin2, refresh-packagekit
Cleaning up Everything
[root@nms ~]# yum -y update
Loaded plugins: dellsysidplugin2, refresh-packagekit
fedora | 3.8 kB 00:00
fedora/primary_db | 8.4 MB 00:38
livna | 2.4 kB 00:00
livna/primary_db | 2.7 kB 00:00
rpmfusion-free | 3.3 kB 00:00
rpmfusion-free/primary_db | 276 kB 00:04
rpmfusion-free-updates | 3.8 kB 00:00
rpmfusion-free-updates/primary_db | 148 kB 00:02
updates | 4.4 kB 00:00
updates/primary_db | 2.6 MB 00:08
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package bind-libs.i586 32:9.6.1-4.P1.fc11 set to be updated
---> Package bind-utils.i586 32:9.6.1-4.P1.fc11 set to be updated
---> Package libmad.i586 0:0.15.1b-13.fc11 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================
Package Arch Version Repository Size
========================================================================
Updating:
bind-libs i586 32:9.6.1-4.P1.fc11 updates 904 k
bind-utils i586 32:9.6.1-4.P1.fc11 updates 241 k
libmad i586 0.15.1b-13.fc11 rpmfusion-free-updates 84 k

Transaction Summary
========================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)

Total download size: 1.2 M
Downloading Packages:
(1/3): bind-libs-9.6.1-4.P1.fc11.i586.rpm | 904 kB 00:03
(2/3): bind-utils-9.6.1-4.P1.fc11.i586.rpm | 241 kB 00:00
(3/3): libmad-0.15.1b-13.fc11.i586.rpm | 84 kB 00:02
------------------------------------------------------------------------
Total 162 kB/s | 1.2 MB 00:07
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 signature: NOKEY, key ID d22e77f2
updates/gpgkey | 1.6 kB 00:00
Importing GPG key 0xD22E77F2 "Fedora (11) " from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 signature: NOKEY, key ID 8fcff4da
rpmfusion-free-updates/gpgkey | 1.7 kB 00:00


Public key for libmad-0.15.1b-13.fc11.i586.rpm is not installed
Anda memiliki surat baru dalam /var/spool/mail/root
[root@nms ~]#


This too will take a while since it's likely that dozens of packages will need to be updated. Once it's done it's a good idea to reboot again for good measure and if all goes well you should be done!

Source : http://www.gagme.com/greg/linux/f9-tips.php