Ubuntu Discussion on Ubuntu on the Dell Inspiron Mini range of netbooks.

Thread Tools Display Modes
  (#1) Old
onefish2 onefish2 is offline
Senior Member
Posts: 135
Join Date: Sep 2008
Location: Nanuet, NY USA
Send a message via AIM to onefish2
Default 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!

Obsidian Mini9 - Ubuntu Intrepid Ibex 8.10 with Netbook Remix, 8GB SSD, 2GB RAM, 4GB SD, Bluetooth, 1.3 Webcam
Lifestreaming @ http://www.ExploitTheSystem.com | Blogging @ http://www.onefish2.com
Reply With Quote
  (#2) Old
GerallK GerallK is offline
Senior Member
Posts: 241
Join Date: Oct 2008
Location: Beaumont, TX US
Send a message via Yahoo to GerallK
Default Re: Fresh Ubuntu Install Without Losing Your Current Settings - 11-13-2008, 05:19 PM

Thanks for the linkage!

I didn't know about the dpkg --get-selections command, but it's now a standard trick in my toolbox. I'm debating about an Intrepid install to replace the Mini's stock-Dell Ubuntu.

Obsidian Mini 9 > 2gb ram, 16gb ssd, bluetooth, 1.3mp webcam, us-intl kbd
Internal Mods > usb hub, 16gb flash drive, 8gb flash drive, added webcam, changed kbd
Software Mods > Dellbuntu 8.04.1 | Gentoo 2008.0
Reply With Quote

« Webcam screen dead running Cheese | Display Backlight »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Copyright © 2008-2016 MyDellMini.com.