"[email protected]" <[email protected]> wrote: > On 5 March 2011 20:00, Yue Wu <[email protected]> wrote: > > On Sat, Mar 05, 2011 at 04:48:17PM +0100, Greg Byshenk wrote: > >> On Sat, Mar 05, 2011 at 11:04:36PM +0800, Yue Wu wrote: > >> > 1. How to reserve packages that fetched via `pkg_add -r`? > >> > ... > >> For (1), do you mean 'preserve', as in save a copy? ?If so, then > >> 'portmaster -b [...]' will save a backup copy of installed packages. > > > > Yes, I mean 'preserve'... > > from man 1 pkg_add: > > -K, --keep > Keep any downloaded package in PKGDIR if it is defined or in cur- > rent directory by default.
Last time I tried it, pkg_add -r -K did indeed save local copies of the packages fetched from the remote repository, but a problem arose when one later wanted to _use_ that local stash while falling back to -r behavior for anything not found locally. Last I knew there was no easy way to tell pkg_add to do that. _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[email protected]"
