Preparation
- Make sure that you have enough space for backing up all your disk
- Check the "Common bugs" page for the new Fedora release, e.g. for Fedora 28 for any issues. If you are planning to install an unstable release or a version just released a few days ago, check the Blocker bugs for critical bugs which may affect you.
Backup
First, you need to carefully make a backup.
- Save the list of installed packages (
rpm -qa
) just in case.¹ - Save the list of manually installed packages (
dnf leaves
using the dnf leaves plugin). This will be needed later if you want to reinstall all the extra packages you've installed before.¹ - For every user installed, take a copy of the dconf database running
dconf dump /
as their user ID.¹ - Create a copy of
/etc
. Do this as root or with sudo because otherwise you will be missing important files due to missing permissions. This will backup system-wide configuration.² - Take a backup of a list of all enabled systemd units using
systemctl list-unit-files | grep enabled
.¹ - If you have
/opt
or files in /usr/local
, make a backup too.² - If you are interested in keeping logs, etc., or are using a web server, backup the relevant parts of
/var
too. This is not normally needed. - Backup the output of
rpm -Va
. Have a look at this list as it will contain all files which differ from package defaults. This is especially important for config files which may reside outside of /etc
, but also for permissions. - Take a full backup of
/home
.³ If it is on a separate partition, take an image, e.g. by using GNOME disks or dd
(dangerous). If it is not on a separate partition, consider putting it on a separate partition as this will ease future reinstallations. If you don't have a separate partition, then carefully back-up your /home
and store it useing tar
or cp -a ...
to ensure the permissions of all files remain unchanged when you restore. - Take a full image (backup) of all disk(s) connected to that computer just in case anything goes wrong.
- Have a look at the backups to make sure that they actually work. If the backup failed (e.g. corrupted data) and you rely on it, you have a problem (or several problems).
¹: Do this from the currently running system or through a chroot environment from a live image.
²: Do this either from the currently running system or a live image.
³: Do this from a live image, not from the running system! Otherwise file modifications will be lost. You may also get problems with permissions.
Fedora installation
Boot from any installer media and do a full installation, wiping the root partition. You do not have to wipe a separate /home
partition. You need to wipe any partition containing the boot manager (/boot
) or the system-managed folders below /usr
. If you have a separate partition for /var
, you ... (more)
a workstation or a server as described in the question linked? Backup strategy may be different.
I do not see any difference. Do you have an example?
your point 3. and point 7. for example. However, I think those are minor differences! Great question and great answer! I guess this will be very helpful to other users (that sort of question has been asked many many times here).