I am having some trouble with an installed debian on a machine. While I have all data backed up, the configuration of installed packages is also critical to me. Does anybody know a way to either re-install the OS while keeping ideally all of /etc and /home or alternatively at least get a fresh debian install will all previously installed packages which I would only have to reconfigure plus copy my data
migrated from stackoverflow.com Jun 18 '11 at 14:52
I don't know what problem you are trying to solve.
What I do
What I do in order to get upgrades is:
So upgrading is:
Simple hint: Without starting from scratch
You should be able to get a long way with something like
I havent't tried it, on my system it would download about 3 Gb of packages :)
Sample output from my system (note a list of packages that aren't in the Debian/Ubuntu repositories):
sehe@meerkat:/tmp$ sudo apt-get install --reinstall $(dpkg --get-selections | grep -w 'install$' | cut -f1) -d
Reading package lists... Done
Building dependency tree
It depends on how your disk is partitioned.
If you have
It's unlikely that you would have dedicated a partition to
I hope, though, the data you have backed up include your configuration files.