Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2014 19:50:04 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Brandon Schneider <brandon.schneider@icloud.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to have jails checked for out of date applications.
Message-ID:  <alpine.BSF.2.11.1409161944550.62193@wonkity.com>
In-Reply-To: <5418BD41.4020602@icloud.com>
References:  <5418BD41.4020602@icloud.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Sep 2014, Brandon Schneider wrote:

> Hello everyone, a FreeBSD newbie here. I have my server set up with 8 jails 
> or so, and I have been trying to figure out how to get an email when there 
> are out of date applications installed in a jail. I currently have jailaudit 
> installed, but it seems like "pkg version -vIL\= would serve the purpose on 
> the host, but I'm not sure. I'm sure this is a common question, but I cannot 
> seem to find an answer on Google. The jails are a mix of packages and ports 
> if that makes much difference. I also use portmaster for the ports.

That will not work as-is.  It will only look at the host's package 
database.  To check the jails, see the pkg-version(8) man page about the 
PKG_DBDIR environment variable.  Set that to the jail's package database 
directory, like /usr/jails/myjail/var/db/pkg, and then pkg-version will 
check the jail's packages.



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