Date: Fri, 12 Feb 2010 05:30:59 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Adam Vande More <amvandemore@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: python script to backup installed packages Message-ID: <873a175dvw.fsf@kobe.laptop> In-Reply-To: <6201873e1002111835p7836d8e0xd35c7765c6069f1@mail.gmail.com> (Adam Vande More's message of "Thu, 11 Feb 2010 20:35:16 -0600") References: <6201873e1002110815l312da12fr5388956f32465516@mail.gmail.com> <87d40btvqp.fsf@kobe.laptop> <6201873e1002111835p7836d8e0xd35c7765c6069f1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Feb 2010 20:35:16 -0600, Adam Vande More <amvandemore@gmail.com> wrote: > 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. ;) This is bordering on creeping featuritis, so I would probably avoid going there. If you *have* a backup of the packages, you can start by installing portupgrade. Then you can point portupgrade at the package archive and use the -PP option to install all the dependencies. Then you can avoid all that and just use something like: cd /mnt/backup/packages/All pkg_add vim-lite\*tbz This will automatically install any packages vim-lite needs, as long as they are available in the current working directory.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?873a175dvw.fsf>