Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 20:35:16 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: python script to backup installed packages
Message-ID:  <6201873e1002111835p7836d8e0xd35c7765c6069f1@mail.gmail.com>
In-Reply-To: <87d40btvqp.fsf@kobe.laptop>
References:  <6201873e1002110815l312da12fr5388956f32465516@mail.gmail.com> <87d40btvqp.fsf@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 11, 2010 at 1:31 PM, Giorgos Keramidas <keramida@ceid.upatras.gr
> wrote:

> My own version groks an os.environ['EXTRA_PKG_CREATE_ARGS'] option too
> and inserts the extra options before the ["-b", "package"] arguments of
> pkg_create, so that I can run the script for example with:
>
>    env EXTRA_PKG_CREATE_ARGS='-Rvn' ./savepkg.py
>
> This way package dependencies are saved too (-R option), the output of
> the `pkg_create -b' command is slightly more verbose, and saving the
> same package multiple times doesn't overwrite existing packages of the
> same version (-n option).
>
>
Thanks for the tips, I may add some of your functionality to my own.  I
think I might add a couple more features like accepting a backup path from
the command line and an auto create for the dir if it doesn't exist.  One
other thing that might be useful is for it to automatically create an
install script for the backed up packages which takes into account
dependencies.  Almost have a package management system like some other
unnamed OS's then. ;)


-- 
Adam Vande More



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6201873e1002111835p7836d8e0xd35c7765c6069f1>