Date: Sun, 06 Mar 2011 00:27:19 -0800 From: perryh@pluto.rain.com To: illoai@gmail.com Cc: freebsd-stable@freebsd.org, vanopen@gmail.com Subject: Re: Question about packages installed via `pkg_add -r` Message-ID: <4d734567.15evysQIxrkK6d6O%perryh@pluto.rain.com> In-Reply-To: <AANLkTi=_K=q3O3jZZLeDjj9AsckWzu9Sz-Ju7kxhknn9@mail.gmail.com> References: <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net> <4D72A069.90104@FreeBSD.org> <20110306010015.GC4160@fbsd.t60.cpu> <AANLkTi=_K=q3O3jZZLeDjj9AsckWzu9Sz-Ju7kxhknn9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"illoai@gmail.com" <illoai@gmail.com> wrote: > On 5 March 2011 20:00, Yue Wu <vanopen@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d734567.15evysQIxrkK6d6O%perryh>