Question about packages installed via `pkg_add -r`
Doug Barton
dougb at FreeBSD.org
Sat Mar 5 20:43:22 UTC 2011
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/
More information about the freebsd-stable
mailing list