# What a lovely OS

Really, What a lovely OS is Debian.

I must admire its technical design. Recently I had to wipe out my hard drive for some reasons. I had put a lot of effort into selection of packages and configuration as per my taste.

And guess what, re-installation is a cool breeze in Debian. Every setting and every package (from multiple sources) were back. I use a mixture of Testing + Unstable + Experimental + (Some other apt sources) on my laptop.

1. Backup your /home and /etc directory. I’ll leave /etc/ upto you but /home/ is important. Right ? Also backup any non-standard path where you might have saved important data

2. dpkg –get-selections > package-selection.txt. This will make a database of the packages installed on your system. This is important, don’t forget to copy it to another reliable media

3. Also backup your /etc/apt/ folder. I back it up because that’s where the core repository settings are.

4. Wipe out your hard drive now.

5. Do a new installation of Debian. Try to make it a bare minimum installation.

8. Obviously you’ll do an **apt-get update**
9. Now the game to restore everything back as it was in the beginning. dpkg --set-selections <package-selection.txt