Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2012 08:07:43 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        freebsd-questions@freebsd.org, Beastie-Boy <networkaholic@gmx.de>
Subject:   Re: stay up to date with ports and packages, problem
Message-ID:  <alpine.BSF.2.00.1205190803400.30455@wonkity.com>
In-Reply-To: <4FB7A6F9.2090202@FreeBSD.org>
References:  <1337434051474-5709999.post@n5.nabble.com> <4FB7A6F9.2090202@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 19 May 2012, Matthew Seaman wrote:

> That's a bit drastic and pretty much something you'ld never actually
> want to do in normal usage.  However, for completeness' sake:
>
>   # pkg_delete -af
>
> will remove all installed ports.  After doing that there should be
> hardly anything left under /usr/local -- most of what's left would be
> config files in /usr/local/etc.

The -f is probably not needed.  I've done this rarely enough to not 
recall, but -a should sort everything in the right order so dependencies 
are uninstalled in order.

> The advice to use portmaster is good.
>
> A typical session to maintain all your ports goes something like this:
>
>   # portsnap fetch update             (Gets the latest contents for
>                                        /usr/ports)
>   # less /usr/ports/UPDATING          (Check for any special
>                                        instructions affecting any
>                                        ports you have installed.
>                                        Assuming nothing out of the
>                                        ordinary is required (and it
>                                        usually isn't), then...)
>   # pkg_version -vIL=                 (see what needs updating)
>   # portmaster -a                     (update everything out of date)

portmaster can show ports that can be updated:

   portmaster -L --index-only

Or, more concisely:

   portmaster -L --index-only | egrep '(ew|ort) version|total install'

There's a short overview of port upgrading procedures and reasoning 
at http://www.wonkity.com/~wblock/docs/html/portupgrade.html .



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