<div dir="ltr">saw this at askubuntu, and it looks quite complete:<div><br></div><div><div>A quick way of backing up a list of programs is to run this:</div><div><br></div><div>dpkg --get-selections > ~/Package.list</div>
<div>sudo cp /etc/apt/sources.list ~/sources.list</div><div>sudo apt-key exportall > ~/Repo.keys</div><div>It will back them up in a format that dpkg can read for after your reinstall, like this:</div><div><br></div><div>
sudo apt-key add ~/Repo.keys</div><div>sudo cp ~/sources.list /etc/apt/sources.list </div><div>sudo apt-get update</div><div>sudo apt-get install dselect</div><div>sudo dpkg --set-selections < ~/Package.list</div><div>
sudo apt-get dselect-upgrade -y</div><div>Settings and Personal Data</div><div>Before you reinstall, you should probably back up the settings from some of your programs, this can easily be done by grabbing folders from /etc and all the content from your user directory (not just the stuff you can see in nautilus!):</div>
<div><br></div><div>rsync --progress /home/`whoami` /path/to/user/profile/backup/here</div><div>After you reinstall, you can restore it with:</div><div><br></div><div>rsync --progress /path/to/user/profile/backup/here /home/`whoami`</div>
<div>So all together as a pseudo-bash script.</div><div>This assumes there is only one user on the machine (remove /'whoami' otherwise) and that you used the same username on both installs (modify dest. of rsync otherwise).</div>
<div><br></div><div>dpkg --get-selections > ~/Package.list</div><div>sudo cp /etc/apt/sources.list ~/sources.list</div><div>sudo apt-key exportall > ~/Repo.keys</div><div>rsync --progress /home/`whoami` /path/to/user/profile/backup/here</div>
<div><br></div><div>##  Reinstall now</div><div><br></div><div>rsync --progress /path/to/user/profile/backup/here /home/`whoami`</div><div>sudo apt-key add ~/Repo.keys</div><div>sudo cp ~/sources.list /etc/apt/sources.list </div>
<div>sudo apt-get update</div><div>sudo apt-get install dselect</div><div>sudo dpkg --set-selections < ~/Package.list</div><div>sudo dselect</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 27, 2013 at 1:21 PM, Michael Havens <span dir="ltr"><<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">well.... it looks as if I may have to reinstall my laptop (which sucks) if we can't get x working again. I  just realized something I didn't do: I did not write down all the ppa addresses. So what I would like to know is in which file are the ppa s kept? then I can scp that to the tv server and if we can't get x working again it won't be as painful a bite. Thanks:-)<br clear="all">


<div><div>:-)~MIKE~(-:</div>
</div></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<h1 style="margin:0px 0px 15px;color:rgb(24,24,24);font-weight:normal;padding:0px;font-size:14px;font-family:georgia,serif;line-height:18px">“Keep away from people who try to belittle your ambitions. Small people always do that, but the really great make you feel that you, too, can become great.”</h1>
<br style="color:rgb(24,24,24);font-family:georgia,serif;font-size:14px;line-height:18px"><span style="color:rgb(24,24,24);font-family:georgia,serif;font-size:14px;line-height:18px">― </span><a href="http://www.goodreads.com/author/show/1244.Mark_Twain" style="color:rgb(102,102,0);text-decoration:none;font-family:georgia,serif;font-size:14px;line-height:18px" target="_blank">Mark Twain</a><br>
</div>
</div>