If I have these locations all on separate partitions:
- /usr
- /usr/local
- /opt
- /home
How can I remove Ubuntu (for example) and install Mint and lose no data? How would I preserve installed packages across the move?
If I have these locations all on separate partitions:
How can I remove Ubuntu (for example) and install Mint and lose no data? How would I preserve installed packages across the move?
in my opinion, a safer way to achieve that would be to backup those directories and then re-install with the distribution of your choice.
If you want to backup your installed package list for re-installation later, you could try something like:
dpkg --get-selections > ~/Package.list
and then to restore the list later (on a debian based distro):
dpkg --set-selections < ~/Package.list
deselect
see https://askubuntu.com/questions/9135/best-way-to-backup-all-settings-list-of-installed-packages-tweaks-etc for more ideas.