On 13/01/2013 02:54, Yasuhiro KIMURA wrote: > Hello all. > > Before migrating to PKGNG, I run following one-liner after updating > pacagkes, see what are depend on updated ones and check if there are > programs to be restarted. > > % pkg_info -R `find /var/db/pkg -name +DESC -newer /usr/ports/INDEX-9 -print > | sed 's|/var/db/pkg/\(.*\)/+DESC|\1|'` > > Are there any way to know what require update packages with PKGNG?
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"
This should do what you want if you're using portsnap and then compiling
pkgs from ports. If you're pulling packages from a repo,
then try comparing against the timestamp of /var/db/pkg/repo.sqlite
instead.
However, if you're using pkg against a repo, when you type 'pkg upgrade'
it does anyhow show you a list of all the packages it is going to
install or upgrade. There's also the HANDLE_RC_SCRIPTS setting in
pkg.conf that may be of interest to you.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
signature.asc
Description: OpenPGP digital signature
