Craig wants to roll back updates, not restore a list of package selections.&nbsp; He wants to go back to the versions of software that were on his system previous to the update.&nbsp; A list of package selections will not do this.&nbsp; <br>
<br>ie;<br><br>I have foo-3.0.1 installed on my system.&nbsp; I upgrade to foo-3.0.2.&nbsp; Restoring a selections list will not downgrade the package because only the package name, &#39;foo&#39;, is represented.<br><br><div class="gmail_quote">
On Fri, Jan 30, 2009 at 2:27 PM, Jack <span dir="ltr">&lt;<a href="mailto:quiet_celt@yahoo.com">quiet_celt@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I forgot to tell you how to save and restore for future reference.<br>
<br>
Here they are.<br>
<br>
------------------------------------------------------------<br>
To save your installed list do this:<br>
<br>
dpkg --get selections | grep -v deinstall &gt; packagestateXXXXXXXX.txt<br>
<br>
where XXXXXXXX is the current date. Or use your own convention.<br>
The grep -v deinstall removes entries of packages that are marked for removal.<br>
<br>
===============================================================<br>
<br>
To later restore them do this:<br>
<br>
dpkg --clear-selections<br>
dpkg --set-selections &lt; packagestateXXXXXXXX.txt<br>
apt-get -u dselect-upgrade --purge<br>
<br>
----------------------------------------------------------------<br>
<br>
Note this is all commandline stuff and assumes you are logged in as root. Simply prepend &quot;sudo&quot; to each line if you are not root. Note, also this is destructive. I believe it might remove and purge some software not on this list. I&#39;ve never tried this so proceed at your own risk. Alternatively you could remove the --purge option to not purge any config files on anything it might remove.<br>

<br>
There might be a utility out there to do this for you, but I dn&#39;t know of it.<br>
<br>
Brian J<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
Kclug mailing list<br>
<a href="mailto:Kclug@kclug.org">Kclug@kclug.org</a><br>
<a href="http://kclug.org/mailman/listinfo/kclug" target="_blank">http://kclug.org/mailman/listinfo/kclug</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Chris<br><br><br><br>