To keep all installed packages use this process:
1. Enter following command (before reinstallation) in console from your user directory:
Code: Select all
ls /var/log/packages/ |sed -e "s/-[0-9].*//" >packages.log
( /home should be mounted to a separate partition in the best case, but a backup can not harm anyway )
Tipp: Copy /etc/fstab (or maybe your complete /etc folder) to /home, then you have to do only a backup of /home including your /etc.
3. Reinstall with keeping your partition table as it is. Do not change anything in cfdisk, just Quit.
4. Let Setup mount / and /home as it was before.
5. After rebooting into the new system, copy /etc/fstab (or complete /etc if so wanted) from the backup back. Maybe do mount -a in console to get the other partitions mounted again ( I only use a separate partition for /home ).
6. In console, do the following command to install additional packages again (which are not on the installation iso):
Code: Select all
for file in `cat packages.log` ; do slapt-get -y -i $file ; done
Because of the for, it will skip each package with an error and proceed with the next one. Giving all packages as one parameter to slapt-get (only one instance started) will result in slapt breaking at the first package error.