From owner-freebsd-stable@FreeBSD.ORG Sun Mar 6 01:14:41 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 46A5C106579A for ; Sun, 6 Mar 2011 01:14:41 +0000 (UTC) (envelope-from vanopen@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id EDBA38FC16 for ; Sun, 6 Mar 2011 01:14:40 +0000 (UTC) Received: by ywf9 with SMTP id 9so1381774ywf.13 for ; Sat, 05 Mar 2011 17:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:organization :x-operating-system:user-agent; bh=KVg9BbwPYAvHbdLidCsiZ+FU9aSGmgWt3aGJG/tIdto=; b=hylfPlKgq/NL5CpookD+5XS+hIZ/+TGxvVTQRDuZyfgeqXer/1993NcY6kDDn53r8L kg4Cn0j/UoviNH/u+FsEowl9sFuF9Hgr8wbG7USR+EgqfPun2nRp14Tpm8qMrrA/MdgY Cg39Y7b51gAfcffXmGvR6ItZeIBVPzxedJugA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:organization:x-operating-system:user-agent; b=rKJbq1VyFw4as7Js6tJACJQMmb4A4StyEQF8p5OdwtmGi4atYZlsuwt7N+1MIvYxrc H709RiQQSpzaj1Sp1PwTgAVhqML/n0F/a7Le9hcCwMIB2GCLxusbpRla7+SMpJF64taE xqyvYw0Xn0TG06cCcwo9CILrr5AowjrccR52w= Received: by 10.236.30.233 with SMTP id k69mr3815286yha.0.1299374080069; Sat, 05 Mar 2011 17:14:40 -0800 (PST) Received: from fbsd.t60.cpu ([221.6.39.130]) by mx.google.com with ESMTPS id g31sm707469yhd.26.2011.03.05.17.14.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 Mar 2011 17:14:39 -0800 (PST) Date: Sun, 6 Mar 2011 09:14:33 +0800 From: Yue Wu To: ml-freebsd-stable Message-ID: <20110306011433.GA21857@fbsd.t60.cpu> References: <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net> <4D72A069.90104@FreeBSD.org> <20110306010015.GC4160@fbsd.t60.cpu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: China Pharmaceutical University, Nanjing, China X-Operating-System: FreeBSD 8.2-PRERELEASE i386 User-Agent: Mutt/1.5.21 (2010-09-15) 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 01:14:41 -0000 On Sat, Mar 05, 2011 at 08:02:47PM -0500, illoai@gmail.com wrote: > On 5 March 2011 20:00, Yue Wu wrote: > > Hello, sorry for poor English, I will try to explan clearer with my > > best. > > > > 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: > >> > >> > I'm trying to use package instead of ports these day, but a few > >> > questions have: > >> > > >> > 1. How to reserve packages that fetched via `pkg_add -r`? > >> > > >> > 2. How to know if there are updates for packages, and how to update? > >> > >> 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'. I've maned portmaster, seems -b is for a > > installed package, so it will preserve it by packing up the files from a > > installed package, why not preserve it just when fetching with `pkg_add > > -r`? I think it's the best way, I don't like the portmaster way to do it > > after. > > from man 1 pkg_add: > > -K, --keep > Keep any downloaded package in PKGDIR if it is defined or in cur- > rent directory by default. > Thanks, sorry for no attentively reading ;p Another question arises after checking the pkg 'pkg_add' saves, why the pkg doesn't have a version appended to its name, it's hard to know the version the pkg downloaded... -- Regards, Yue Wu Key Laboratory of Modern Chinese Medicines Department of Traditional Chinese Medicine China Pharmaceutical University No.24, Tongjia Xiang Street, Nanjing 210009, China