Davor Ocelic <[EMAIL PROTECTED]> writes:

> On Sun, Apr 08, 2007 at 03:03:49PM -0400, Michael Olson wrote:
>> It also might be a good idea to make a backup of the list of packages
>> that we have installed, and keep around a script which is capable of
>> restoring that list.  I've attached two scripts which save and restore
>> said list that I made and tested at work.
>
> dpkg --get-selection > file 
> dpkg --set-selections < file && apt-get dselect-upgrade

That's basically what they do, except they strip out the "Install: "
part when saving to file, so it's easier to manually massage the
listing if need be.  Also, my scripts adds the "-y" to apt-get to
force the install.

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC
 |_] | \| |_| Reclaim your digital rights by eliminating DRM.
      See http://www.defectivebydesign.org/what_is_drm for details.

Attachment: pgp4JABKig7hX.pgp
Description: PGP signature

_______________________________________________
HCoop-SysAdmin mailing list
[email protected]
http://hcoop.net/cgi-bin/mailman/listinfo/hcoop-sysadmin

Reply via email to