Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2011 16:48:17 +0100
From:      Greg Byshenk <freebsd@byshenk.net>
To:        Yue Wu <vanopen@gmail.com>
Cc:        ml-freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Question about packages installed via `pkg_add -r`
Message-ID:  <20110305154817.GQ30336@core.byshenk.net>
In-Reply-To: <20110305150436.GA2175@fbsd.t60.cpu>
References:  <20110305150436.GA2175@fbsd.t60.cpu>

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

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

will update all of your ports, using packages, and save a backup copy
of the installed versions.


-- 
greg byshenk  -  gbyshenk@byshenk.net  -  Leiden, NL



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