From owner-freebsd-questions@FreeBSD.ORG Fri May 29 20:01:06 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF52E1065670 for ; Fri, 29 May 2009 20:01:06 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: from mail-ew0-f164.google.com (mail-ew0-f164.google.com [209.85.219.164]) by mx1.freebsd.org (Postfix) with ESMTP id 5E4928FC0A for ; Fri, 29 May 2009 20:01:06 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: by ewy8 with SMTP id 8so3039829ewy.43 for ; Fri, 29 May 2009 13:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=kCyzuv838+RY6Gd5/ETsGdDwJ28LkIS3LcDyPsYSttU=; b=qRP9uKynk7Wc88xH6gZK1ajqhANOES/IhyPYboOZco8COskNakkgdn5X8YtYmAO/Ei 4oy3V8iUNwRBoJCL0Z42mn2MKzdBUIARbYAF/AkRdu6YHMXQNBfxvDrVcvKXGtZOvaHC HFNto0IMOnm2S36SYUyOH/z0+Iz5vOsjXw+KI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=fhHLzCJmaXHJupXEZY7S9f1xBwZbWzIYwsgro80BWeG+hu3lH4o+jZ+OIdKsXIbr7v cX3JyWcuZtZFrGpIfsFM189H9Vl0Vilzb1Lhop2FMFH5ghOLK8tBMvyCVyRYMbrbBha/ BqtoBza98fPUhHvTxgJg23mg2qGN0VfdcCHz8= MIME-Version: 1.0 Received: by 10.216.28.75 with SMTP id f53mr1033507wea.165.1243625745394; Fri, 29 May 2009 12:35:45 -0700 (PDT) Date: Fri, 29 May 2009 20:35:45 +0100 Message-ID: <1b30fd140905291235q7f45e6c3x7dcba8a8e88cf3ca@mail.gmail.com> From: David Collins To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: portupgrade jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: davidcollins001@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2009 20:01:07 -0000 Hi, I have several jails for the purpose of not trashing my root partition with junk programs that I may not need and also to learn how to run various system services, ie dns, http, mysql, samba etc. I have been running them for a while and have only just updated the jail root after rebuilding world. I have been using portupgrade to rebuild the host ports I have installed. What I would like it know is if it is possible to use portupgrade on the host system to update the jail ports. So like when rebuilding world a destdir is specified and is populated with the new world, is it possible to do the same with portupgrade? The reason is because I don't want to have to install portupgrade and ruby several times, also I can script the upgrade easily too. I have been reading through the ports and portupgrade man pages and setting environment variables to the appropriate directories in the jail to try to get this to work but so far no luck. Portupgrade wants to upgrade the host ports Here is what I have tried so far: viper:~$ export DISTDIR=/usr/jails/xserver/var/tmp/ viper:~$ export WRKDIRPREFIX=/usr/jails/xserver/var/tmp/ viper:~$ export PREFIX=/usr/jails/xserver/usr/local/ viper:~$ export BATCH=yes viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/p viper:~$ export PORT_DBDIR=/usr/jails/xserver/var/db/ports viper:~$ export PKG_DBDIR=/usr/jails/xserver/var/db/pkg/ viper:~$ export PORTS_DBDIR=/usr/jails/xserver/var/db/ports viper:~$ viper:~$ sudo portupgrade -narR ---- snip wanting to upgrade host ports ----