[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Backups and the distribution



Willi Dyck had interesting trick.  I knew --get-selections but did not
use it with apt-get.  I would do slightly different but this concept is
interesting.

# dpkg --get-selections | grep -v deinstall | cut -s -f1 >installed.deb
# cat installed.db | xargs -n 10 apt-get install -d

Oh your Willi's vi actions can be  |tr '\n' ' '>installed.deb
.... But xarg makes this not needed.

Osamu
On Sat, Apr 21, 2001 at 12:58:06AM +0200, Willi Dyck wrote:
> On Fri, Apr 20, 2001 at 12:59:08PM -0700, Alex Swavely wrote:
> > What file(s) would I need to backup to get a complete snapshot of all
> > installed packages from the distribution I'm using in order to be able to
> > recover a system to it's previous state?

-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ 
+  Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D  +
+  For my debian quick-reference, peek into:                          +
+                               http://www.aokiconsulting.com/quick/  +



Reply to: