Ressources documentaires pour Mandriva Linux et les Logiciels Libres

How to upgrade to Cooker or pre-2008.1

Some people may want to test the latest Cooker in order to test the future Mandriva 2008.1. So I will give a way to do an upgrade with urpmi from 2007.1/2008.0 to Cooker/pre-2008.1. With some minors changes, this will also allow people to upgrade from 2007.1/2008.0 to 2008.1 when it will be released. So here are the instructions :

  1. Remove or disable your previous Mandriva repos : In order to not have some conflicts, you should disable your current Mandriva repos with : urpmi.removemedia -a
  2. Remove kernel packages from /etc/urpmi/skip.list : Indeed, in previous Mandriva versions, the kernel packages were not updated automatically, so they were added by default in urpmi skip.list file. However presently this is no longer needed, so it’s safe to remove theses entries.
  3. Add Cooker mirrors : Now you can add the Cooker mirrors. For this, you can use easyurpmi to do this. Please add Main, Contrib and Non-Free by using synthesis files
  4. Possibility #1 : upgrading directly : Now that you have had the Cooker media, you can eventually directly try to upgrade your Mandriva system with the following command : urpmi –no-verify-rpm –auto-select
  5. Possibility #2 ( recommended ) : cleanup your system : urpmi may issues doing the upgrade directly, especially if you have the big transaction bug. That’s why I advise to remove desktop packages before reinstalling them. On top of that, you will have the default packages selections for the desktop. So for KDE, you will uninstall kdelibs-common package, and then use task-kde metapackage to install KDE :
    urpme kdelibs-common
    urpmi task-kde
  6. Update your kernel : By updating manually your kernel, you will be able to select the right flavor for your computer. Presently there’s mostly 3 main flavors ( I’m not counting i586 kernel and tmb ones ) : kernel-laptop, kernel-desktop and kernel-server. From the name you can guess the usage of theses kernels. So for someone having a fixed workstation, you can update the kernel like this ( -devel are installed for dkms support ) :
    urpmi initscripts nash dash dash-static kernel-desktop-latest kernel-desktop-devel-latest
  7. First pass with –auto-select : Now you can try to updates the whole system with urpmi : urpmi –auto-select –no-verify-rpm
  8. Do a second pass : As Cooker is a moving target, during the time you are installing your packages, others may be updated. That’s why refreshing repositories urpmi media and doing a second pass is advised :
    urpmi.update -a && urpmi –auto-select –no-verify-rpm
  9. Reconfigure graphic cards with drakx11 : Indeed, sometimes the support for a driver may change, or the support could be dropped ( cf Nvidia case ). To avoid this issue, you’d better use drakx11 to reconfigure your graphic card.

Now normally, you’re system should be completly updated. You can now reboot. Don’t forget to removed old orphans packages and older kernel if everything is fine. To have the list of the old packages, you can use rpm :
rpm -qa | grep mdv2008.0
or
rpm -qa | grep mdv2007.1

]]

Aucun commentaire jusqu'à présent.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Catégories

My Tweets