Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2013 18:42:46 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        matthew@FreeBSD.org
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Way to know what require update packages with PKGNG
Message-ID:  <20130113.184246.510766358.yasu@utahime.org>
In-Reply-To: <50F27474.40405@FreeBSD.org>
References:  <20130113.115444.486245100.yasu@utahime.org> <50F27474.40405@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Matthew Seaman <matthew@FreeBSD.org>
Subject: Re: Way to know what require update packages with PKGNG
Date: Sun, 13 Jan 2013 08:46:44 +0000

>> % pkg_info -R `find /var/db/pkg -name +DESC -newer /usr/ports/INDEX-9 -print | sed 's|/var/db/pkg/\(.*\)/+DESC|\1|'`
> 
> This does the exact equivalent of your one-liner above: find the
> packages that were installed or updated more recently than the ports
> index was last modified:
> 
> pkg query -e "%t > `stat -f %m /usr/ports/INDEX-9`" "%n-%v"

Surely It is what I want to know. Thank you very much !

---
Yasuhiro KIMURA



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