From owner-freebsd-stable@FreeBSD.ORG Sun Mar 6 08:30:42 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF04A1065670 for ; Sun, 6 Mar 2011 08:30:42 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id CC15E8FC0C for ; Sun, 6 Mar 2011 08:30:42 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p268Ufku008619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 6 Mar 2011 00:30:41 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p268UfD6008618; Sun, 6 Mar 2011 00:30:41 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA12390; Sun, 6 Mar 11 00:27:08 PST Date: Sun, 06 Mar 2011 00:27:19 -0800 From: perryh@pluto.rain.com To: illoai@gmail.com Message-Id: <4d734567.15evysQIxrkK6d6O%perryh@pluto.rain.com> References: <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net> <4D72A069.90104@FreeBSD.org> <20110306010015.GC4160@fbsd.t60.cpu> In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org, vanopen@gmail.com Subject: Re: Question about packages installed via `pkg_add -r` X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2011 08:30:43 -0000 "illoai@gmail.com" wrote: > On 5 March 2011 20:00, Yue Wu 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.