From owner-freebsd-ports@FreeBSD.ORG Sat Aug 15 15:51:22 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCCEE106568F for ; Sat, 15 Aug 2009 15:51:22 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id 3FEDA8FC41 for ; Sat, 15 Aug 2009 15:51:21 +0000 (UTC) Received: (qmail 64730 invoked from network); 15 Aug 2009 15:51:21 -0000 Received: from unknown (HELO titania.njm.me.uk) (86.146.156.163) by smtp004.apm-internet.net with SMTP; 15 Aug 2009 15:51:21 -0000 Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.3/8.14.3) with ESMTP id n7FFpKxD070150; Sat, 15 Aug 2009 16:51:20 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.3/8.14.3/Submit) id n7FFpKhk070141; Sat, 15 Aug 2009 16:51:20 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Sat, 15 Aug 2009 16:51:18 +0100 From: "N.J. Mann" To: Thomas Backman Message-ID: <20090815155118.GA95453@titania.njm.me.uk> Mail-Followup-To: Thomas Backman , freebsd-ports@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.2-STABLE User-Agent: mutt-NJM (2009-07-16) Cc: freebsd-ports@freebsd.org Subject: Re: portversion and pkg_version have different opinions on current versions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Aug 2009 15:51:22 -0000 In message , Thomas Backman (serenity@exscape.org) wrote: > First off: not subscribed to this list, please make sure to Cc me or I > won't see your answers! :) > > Oh, and I use portsnap, in crontab: > 0 19 * * * portsnap -I cron update > > So, long story short: > > [root@chaos ~]# pkgdb -aF > ---> Checking the package registry database > [root@chaos ~]# portversion -l '<' > dnsmasq < > ezm3 < > libtool < > python26 < > [root@chaos ~]# pkg_version | awk '$2 !~ /=/' > [root@chaos ~]# portupgrade -a > [root@chaos ~]# I do not have portversion on my system so I assume it is part of portupgrade or some other tool. I find pkg_version works fine for letting me know what needs updating after doing a CVSup. BTW you do not need to use awk in the above, e.g. pkg_version -L = will show only those ports which are not up-to-date, RTFM for details. :-) Some years ago I tried using portupgrade, but had all sorts of problems with its database getting corrupted. In desparation I tried portmaster and have been a very happy since. (Thanks Doug!). [...] > I don't care overly much about having the bleeding-edge version, but > I'd rather not, as I currently have, use packages with known > vulnerabilities (I do know about portaudit, though, and will give that > a check). For instance, I just noticed yesterday that I needed to > upgrade apr, among about 6-7 other packages; the apr vulnerability had > been known for a while before I updated. I think portaudit is definitely worth having installed. You can always ignore its warnings if you want to. Cheers, Nick. --