From owner-freebsd-stable@FreeBSD.ORG Sun Mar 6 01:02:48 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 BF9B51065679 for ; Sun, 6 Mar 2011 01:02:48 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 511658FC0A for ; Sun, 6 Mar 2011 01:02:47 +0000 (UTC) Received: by fxm19 with SMTP id 19so3622591fxm.13 for ; Sat, 05 Mar 2011 17:02:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TsYhN08A5YAlz/D3voFKzLEDkw4lgpmmm+8JaWX853w=; b=Oqlpf86GuIcpEH13XMlmavnBEGaR4vXW2OhA33vc9azSnDIDh9RmK1YyokXeKclXc/ KUdnsTkEX1AfKBeBMvCua2eUI6NhM3G43sybZ1+ew6JlPJ31i4HQ7EhSd27Yk0calw8i Q0zJEdVdeK9BWQ5SmM/X5FGwFzkT/8DCI1Dtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ndQu3fb3uXh621q4f5AeQXdfQJPdPGAj4/cm/QZpMpaHlnD0A/JwZLKYhU3twB5H6e 2XEzWyQOZj4pIGjHQ9kmiyWT7btbDMfxpysmi8f0hRyRgVzs4lek0jO3KqO2pKYAQ4ri 1Rli9YTrGKw2Ymd94KesZK+7uIkZN3kDA/6pU= MIME-Version: 1.0 Received: by 10.223.14.137 with SMTP id g9mr536142faa.2.1299373367217; Sat, 05 Mar 2011 17:02:47 -0800 (PST) Received: by 10.223.96.203 with HTTP; Sat, 5 Mar 2011 17:02:47 -0800 (PST) In-Reply-To: <20110306010015.GC4160@fbsd.t60.cpu> References: <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net> <4D72A069.90104@FreeBSD.org> <20110306010015.GC4160@fbsd.t60.cpu> Date: Sat, 5 Mar 2011 20:02:47 -0500 Message-ID: From: "illoai@gmail.com" To: Yue Wu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ml-freebsd-stable 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:02:48 -0000 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? =A0If 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 c= ur- rent directory by default. --=20 --