Ubuntu Discussion on Ubuntu on the Dell Inspiron Mini range of netbooks.
| ||Thread Tools||Display Modes|
Join Date: Sep 2008
Location: Nanuet, NY USA
Fresh Ubuntu Install Without Losing Your Current Settings - 11-13-2008, 02:02 AM
This should be very timely with people running Hardy and maybe wanting to upgrade to Intrepid
From: http://hehe2.net/linuxhowto/howto-fresh ... -settings/
Author: Rami Taibah
Digg it up as well: http://digg.com/linux_unix/Fresh_Ubuntu ... t_Settings
A clean install or an upgrade? Thatâ€™s a question that keeps tossed around every new Ubuntu release. Common wisdom would suggest that a clean install would probably be better, however the inconvenience of losing current installed apps and configuration makes most of us shy away from this path. But what if I told you that you could have the good of both worlds? A fresh install and keeping your apps and configuration intact?
Keeping your configuration intact is pretty straight forward and obvious. Just backup your /home folder onto an external drive or whatever. Make sure you also grab the hidden files, donâ€™t do my mistake!
Now for the current applications. Basically we just need to make a full list of the installed apps.
sudo dpkg â€“-get-selections > /home/user/package.selections
Of course donâ€™t forget to backup package.selections on the external hard-drive. Also you should backup your /etc/apt/sources.list file since you probably have some extra sources listed over there. Now you can go about your business and do a fresh install.
Once your done with the fresh install, copy the file package.selections into your home. Then copy your sources.list file into /etc/apt/ and update it to match your current distro (e.g Gutsy â€“> Intrepid) you can use CTRL + H in gedit for that. Then do a â€śsudo apt-get updateâ€ť ,and finally invoke:
sudo dpkg â€“set-selections < /home/package.selections && apt-get dselect-upgrade
apt-get will now start downloading all your apps, this will take some time depending on the number of apps you have installed.
Once thatâ€™s done, just copy your backup-ed /home over the current /home (again donâ€™t forget hidden folders).
Log out and log back in to your shiny new fresh install!
Copyright © 2008-2016 MyDellMini.com.