From owner-freebsd-questions@FreeBSD.ORG Sat May 19 14:07:45 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0492C106566B; Sat, 19 May 2012 14:07:45 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id B21998FC1A; Sat, 19 May 2012 14:07:44 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q4JE7h4P030777; Sat, 19 May 2012 08:07:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q4JE7hIC030774; Sat, 19 May 2012 08:07:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 19 May 2012 08:07:43 -0600 (MDT) From: Warren Block To: Matthew Seaman In-Reply-To: <4FB7A6F9.2090202@FreeBSD.org> Message-ID: References: <1337434051474-5709999.post@n5.nabble.com> <4FB7A6F9.2090202@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sat, 19 May 2012 08:07:43 -0600 (MDT) Cc: freebsd-questions@freebsd.org, Beastie-Boy Subject: Re: stay up to date with ports and packages, problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2012 14:07:45 -0000 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 .