Table of Contents

Mise à jour de Slackware

Mise à jour ou Installation à partir de zéro

Installer une version complète de Slackware à partir de zéro est toujours la meilleure solution si vous utilisez une version relativement ancienne de Slackware et que vous voulez sauter quelques versions intermédiaires. Beaucoup trop de changements intrusifs dans la distribution vont arriver si votre version de Slackware est relativement vieille. Cela nécessitera une mise à jour manuelle pénible sans garantie de succès.T.
Il est mieux en pareil cas de faire une sauvegarde de votre listes de paquetages (“ls -lart /var/log/packages”), une sauvegarde de votre répertoire “/etc” et ( vous l'avez déjà fait bien sur ) une sauvegarde de vos données personnelles. Formatez votre disque dur et installez Slackware à partir de votre medium de boot ( CD, DVD ou disque USB ), et une heure plus tard vous serez de nouveau opérationnel.

Si vous voulez mettre à jour vers la nouvelle version de Slackware, vous pouvez le faire manuellement en suivant les instructions du fichier “UPGRADE.TXT” que vous trouverez à la racine du CD1/DVD de Slackware. Les instructions avancées et autres astuces peuvent être trouvées dans le fichier “CHANGES_AND_HINTS.TXT” au même endroit.Il ya aussi une procédure semi-automatique pour ce type de mise à jour en utilisant slackpkg. Cela vous évitera beaucoup de travail laborieux.
J'utilise toujours slackpkg ( avec précaution ) pour mettre à jour mon système Slackware d'une version stable à la suivante. J'appelle ce processus une mise à jour du système.
Vous pouvez utiliser la même procédure pour migrer vers la version courante slackware-current, garder un système slackware-current à jour, ou mettre à jour un système slackware-current vers une version stable fraichement publiée.

Considerations about the Kernel

Just running slackpkg and hoping for the best is not going to work. Some considerations have to be cared for. One important thing to remember:

Never upgrade your working kernel.

Why is that? Simple - you will be upgrading potentially hundreds of packages and should be prepared for the unlikely event that your computer does not work properly anymore after a system upgrade. One thing you don't want to get hit by is a system which does not boot at all. A new Slackware release may install a kernel that refuses to boot your computer (small chance but nevertheless… be prepared). For that reason, you need to keep your “old” working kernel installed, and keep a section for it in your /etc/lilo.conf file. That way, if the new kernel fails to boot, you can fall-back to the old kernel and start investigating what went wrong.
Basically, these are the same precautions you must take when you are compiling a new kernel yourself.

System Upgrade using SlackPkg

The following steps should work for all situations:

If you were already running a generic kernel and therefore already have an initrd, we strongly advise you to create a new initrd with a new unique name! For instance, you can copy the above example and modify the name of the initrd file as follows:
mkinitrd -c -k 3.2.29 -f ext4 -r /dev/sdb2 -m usb-storage:pcmcia_core:pcmcia:mmc_core:ssb:modprobe:usbhid:ehci-hcd:ohci-hcd:mbcache:jbd2:ext4 -u -o /boot/initrd_3.2.29.gz

Video driver considerations

If your computer is equipped with a video card powered by an Nvidia or Ati graphics processor and you have installed these companies' accelerated graphics drivers (closed-source and binary-only), you should not attempt start an X session after upgrading to the next Slackware release.
These drivers depend on kernel version, Mesa version and the X.Org server. You must re-install the binary driver before starting graphical mode. Also, the mesa and xorg-server packages of Slackware overwrite essential files of these closed-source accelerated graphics drivers anyway.

If you want to know how to deal with these binary drivers, we have more detailed instructions in the “Proprietary Graphics Drivers” article on this Wiki.

Sources

1)
Slackware's package manager does not work with the concept of “lower version” and “higher version”. The package tools only look at “different version” and thus downgrading packages (reverting to an earlier version) is just as easy as upgrading to a newer version!