From owner-freebsd-stable@FreeBSD.ORG Sat Mar 5 20:43:21 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id DD04F106566C for ; Sat, 5 Mar 2011 20:43:21 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from doug-optiplex.ka9q.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id ADE3A15FF05; Sat, 5 Mar 2011 20:43:21 +0000 (UTC) Message-ID: <4D72A069.90104@FreeBSD.org> Date: Sat, 05 Mar 2011 12:43:21 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110304 Thunderbird/3.1.9 MIME-Version: 1.0 To: Greg Byshenk References: <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net> In-Reply-To: <20110305154817.GQ30336@core.byshenk.net> X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ml-freebsd-stable , Yue Wu 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: Sat, 05 Mar 2011 20:43:22 -0000 On 03/05/2011 07:48, 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`? Not sure what you're asking here, can you clarify? >> 2. How to know if there are updates for packages, and how to update? > > There may be a better way, but one way to deal with (2) is to have an > up-to-date ports tree. Then 'pkg_version -vL=' will show you which of > your ports are out of date. Then 'portmaster -PP [...]' will force > package use for updates. > > If you have an up-to-date ports tree, then I think that > > portmaster -abPP The -PP option has to be by itself on the command line, or you can use --packages-only. However portmaster doesn't need a ports tree to operate on packages only. You can use the --index-only --packages-only options and it'll work just fine. You'll want to read the man page before getting started. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/