From owner-freebsd-questions@FreeBSD.ORG Wed Sep 17 03:46:35 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4527087F for ; Wed, 17 Sep 2014 03:46:35 +0000 (UTC) Received: from st11p00mm-asmtp003.mac.com (st11p00mm-asmtp003.mac.com [17.172.81.2]) (using TLSv1 with cipher DES-CBC3-SHA (112/168 bits)) (Client CN "smtp.me.com", Issuer "VeriSign Class 3 Extended Validation SSL SGC CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17079A80 for ; Wed, 17 Sep 2014 03:46:34 +0000 (UTC) Received: from [192.168.1.10] (66-216-230-25.dhcp.stcd.mn.charter.com [66.216.230.25]) by st11p00mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-27.10(7.0.4.27.9) 64bit (built Jun 6 2014)) with ESMTPSA id <0NC0002QQYDDFK60@st11p00mm-asmtp003.mac.com> for freebsd-questions@freebsd.org; Wed, 17 Sep 2014 02:46:26 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-09-17_01:2014-09-16,2014-09-16,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=4 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1409170015 Message-id: <5418F62C.4090707@icloud.com> Date: Tue, 16 Sep 2014 21:47:08 -0500 From: Brandon Schneider User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to have jails checked for out of date applications. References: <5418BD41.4020602@icloud.com> In-reply-to: Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 03:46:35 -0000 Thanks, I actually found out that pkg -j JAILID or JAILNAME then version -vIL]= works as well! On 9/16/2014 8:50 PM, Warren Block wrote: > 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. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"