Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Mar 2011 12:43:21 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Greg Byshenk <freebsd@byshenk.net>
Cc:        ml-freebsd-stable <freebsd-stable@freebsd.org>, Yue Wu <vanopen@gmail.com>
Subject:   Re: Question about packages installed via `pkg_add -r`
Message-ID:  <4D72A069.90104@FreeBSD.org>
In-Reply-To: <20110305154817.GQ30336@core.byshenk.net>
References:  <20110305150436.GA2175@fbsd.t60.cpu> <20110305154817.GQ30336@core.byshenk.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D72A069.90104>