Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2009 12:39:42 -0600
From:      Tim Judd <tajudd@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        davidcollins001@gmail.com
Subject:   Re: portupgrade jails
Message-ID:  <ade45ae90905311139y670e2e7eq55ffe84f77eaf865@mail.gmail.com>
In-Reply-To: <44ws7x5kho.fsf@lowell-desk.lan>
References:  <1b30fd140905291235q7f45e6c3x7dcba8a8e88cf3ca@mail.gmail.com>  <44ws7x5kho.fsf@lowell-desk.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 31, 2009 at 10:02 AM, Lowell Gilbert <
freebsd-questions-local@be-well.ilk.org> wrote:

> David Collins <davidcollins001@gmail.com> writes:
>
> > 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
>
> It sounds like PREFIX is the one you're not picking up.
>
> Perhaps it's being overridden by one of your makefiles, or by
> portupgrade's configuration files?
>


Or portupgrade is using the same souce as pkg_* tools, /var/db/pkg

Or portupgrade is using pkg_* tools.



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