Upgrade to SliTaz 5.1
5.1
How to get from an older SliTaz to 5.1, and what is really possible.
In short: from SliTaz 4.0 or an old 5.0 system, make a fresh install
and keep your files. From a recent cooking install, spk-up is enough.
The Handbook says the same in
Coming from SliTaz 4.0;
this page gives the details and the backup steps.
What do you have?
Three commands tell where you start from:
$ cat /etc/slitaz-release
$ cat /var/lib/tazpkg/mirror
$ uname -m
/etc/slitaz-releasesays4.0, orcookingfor a rolling system.- The mirror file shows which package tree the system follows. A
recent cooking system reads
http://mirror.slitaz.org/i486/cooking/packages/orhttps://mirror.slitaz.org/x86_64/cooking/packages/. uname -msaysx86_64on a 64-bit system;i486,i586ori686on a 32-bit one.
Then pick your case below.
From SliTaz 4.0: fresh install
SliTaz 4.0 came out in 2012. Between 4.0 and 5.1 almost everything
changed: the kernel (6.12 LTS instead of 2.6/3.x), udev, the desktop
(LXDE on GTK3 with the LXTaz tools), the login manager, the settings
tools and the package manager (spk, with tazpkg still there). No
upgrade from 4.0 with tazpkg up was ever tested, and pointing a 4.0
system at the 5.1 mirror is very likely to leave it unbootable.
The tested and recommended way is a fresh install from a 5.1 ISO,
keeping your /home: see "Keep your files" below.
From SliTaz 5.0 or an old rolling install
There was never a stable SliTaz 5.0: "5.0" systems are release candidates or rolling installs that followed cooking, with the 3.16 kernel, GTK2 and TazPanel. Their packages were never tested against the 5.1 mirror, and their mirror file may point to an older address.
Upgrading such a system in place is not a tested path. Treat it like 4.0: back up, then make a fresh install.
A system that only knows tazpkg and whose mirror file is not one
of the two addresses above is in this case.
The installer's Upgrade mode and tazpkg set-release
Two older tools still offer an upgrade. Neither was tested from 4.0 or 5.0 to 5.1:
- Tazinst has an Upgrade an existing system mode. It empties the
partition but keeps
/home,/var/wwwand/etc, puts the new system in place, then reinstalls your extra packages from the mirror (it needs the network). It puts the old/etcback as it was: on a 4.0 or 5.0 system, that brings back boot scripts and settings that do not fit 5.1. It does not check the architecture either. tazpkg set-releasewrites a new release name, then upgrades every package from the matching mirror, the same jump as an in-place upgrade.
Prefer the fresh install: it keeps your files just as well, and you start from a clean 5.1.
From a recent cooking install: spk-up
The cooking ISOs published since October 2026 ("on the road to 5.1") and the 5.1 release candidates use the same packages as 5.1. Installs made from them upgrade in place. As root:
# spk-up
spk-up refreshes the package lists, shows the upgrades and asks for
confirmation. On SliTaz Base i486, which has no spk, use
tazpkg recharge then tazpkg up. The commands and options are in the
Handbook, Upgrade the system.
This was tested: installs from the cooking ISOs of 20 and 31 October
2026, i486 and x86_64, upgraded to the mirror of November with
spk-up, rebooted fine with X, network and USB keyboard.
Before you start:
- Plug in the power on a laptop and leave the upgrade alone until it ends.
spk-up --checkalone does not refresh the lists and may say there is nothing to do. Runspk-up --listfirst, or plainspk-up.- Before upgrading,
spk-uptakes a snapshot and keeps the replaced packages in/var/cache/spk/previous/, so thatreprisecan undo a bad upgrade (see Troubleshooting below).
After the upgrade
Reboot when the kernel was upgraded. When linux-lts is in the
list, the modules of the running kernel are replaced: until you reboot,
a new USB device or Wi-Fi card may find no driver.
Never upgrade linux-lts from a live session. The running kernel
comes from the ISO, it loses its modules and you lose the network and
the graphics driver until the next boot.
The login manager stays SLiM. An upgrade keeps your
/etc/rcS.conf, so an older install still starts SLiM. To get the
5.1 login screen, install lxtaz-dm:
# spk-add lxtaz-dm
then set this line in /etc/rcS.conf and reboot:
LOGIN_MANAGER="lxtaz-dm"
See Login and session
in the Handbook. Other tools changed name in 5.1 (TazPanel → Trame,
udev → eudev...): the list is in
Renamed and replaced packages.
spk-up does not swap an installed package for its new name: install
the new one yourself when you want it.
Cooking and the 5.1 stable branch
A cooking install keeps following cooking: spk-up brings it the
packages built after 5.1. When 5.1 stable is out with its own package
tree, its release notes will tell how to follow it; until then, no
switch from cooking to stable has been tested, so do not edit the
mirror file by hand.
From 32-bit to 64-bit: fresh install
The architecture cannot change in place: every package of an i486
system is built for 32-bit, and spk-up only upgrades within the same
architecture. To move to x86_64, make a fresh install from an x86_64
ISO and keep your /home.
First check that the processor runs 64-bit code: this prints lm on a
64-bit CPU and nothing on a 32-bit one.
$ grep -o -w lm /proc/cpuinfo | sort -u
Keep your files
Whatever the case, back up first. What to keep:
- Your home:
/home/<user>, with the hidden files (browser profile, mail, desktop settings). - A few settings from
/etc, as notes to redo them by hand:/etc/network.confand/etc/wpa/wpa.conf(network and Wi-Fi keys),/etc/fstab(other disks),/etc/hosts, and the files of the services you set up yourself. The install removes/etc: copy it aside with your home, for examplecp -a /etc /media/usb/etc-old. Do not copy old/etcfiles over the new system: read them and set the same values in the new files or in Trame. - The list of your packages, to install them again. It works on every release:
$ ls /var/lib/tazpkg/installed > ~/packages-old.txt
/home on its own partition
The easy case. Install 5.1 on the root partition and give your
existing /home partition to the installer without formatting it,
as the Handbook explains in
Install from the desktop.
Still make a copy first: one wrong click formats it.
/home on the root partition
Tazinst can install on the same partition without formatting it:
it then removes everything on it except /home, and the partition
keeps its file system.
Copy your home to another disk or a USB key first anyway, as root,
here mounted on /media/usb:
# cp -a /home /media/usb/home-backup
If you choose to format the root partition, copy your files back into the new home after the install.
After the fresh install
- Create your user with the same name as before. If your files
belong to another user after the copy, as root:
chown -R alice:alice /home/alice(with your name). - Install your applications again from
~/packages-old.txt, one by one or a few at a time: many names changed since 4.0, andspk-searchfinds the new ones. - Redo the network, Wi-Fi and other settings with Trame or the quick settings (Ctrl+Super).
Troubleshooting
spk-up says there is nothing to do right after an install: the
lists were not refreshed. Run spk-up --list, then spk-up.
No network after an upgrade, before reboot: the kernel was upgraded and its modules changed. Reboot.
The upgrade broke the system: boot the SliTaz rescue (reprise)
entry of the boot menu, or run reprise --fix as root. It compares the
system with its state before the upgrade and proposes to roll back the
packages that broke it, from /var/cache/spk/previous/, without
network. See
Repair a broken system.
The desktop looks wrong after a fresh install with an old home: settings from the old desktop live in hidden files of your home. Create a second user to compare; if the new user is fine, the old settings are the cause.
Links
- Handbook: Coming from SliTaz 4.0, installation, packages.
- SliTaz 5.1 release notes: what changed and the known issues.
- Frugal install: try 5.1 from a partition you already have, without touching the old system.