Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 12:19:38 -0800
From:      Kyle Williams <Kyle@1970Jan1-Epo.ch>
To:        Hung Son Nguyen <nhgson@gmail.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Bootstrapping pkg the FreeBSD Jail
Message-ID:  <20131112201938.GA13195@1970jan1-epo.ch>
In-Reply-To: <CACMhkcO_eh-0Dr0y1hWALfs-CCFM1o%2BRSsgN=%2BQGF=Fiw_ZS%2Bw@mail.gmail.com>
References:  <CACMhkcO_eh-0Dr0y1hWALfs-CCFM1o%2BRSsgN=%2BQGF=Fiw_ZS%2Bw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun Nov 10 02:55:50 2013, Hung Son Nguyen wrote:
>Can I bootstrap pkg without enter the Jail?

If you use ezjail, you can install .tbz ports made with `make package'
during jail creation. Ezjail has an rc.d script that installs anything
in /pkg the first time the jail starts. Create an ezjail flavour with
pkg.tbz in /pkg, and pkg will be automatically installed when you start
a jail created with `ezjail-admin -f [flavour] [hostname] [ip]'

If you don't want to build the .tbz yourself, you can grab an old
version from here:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/ports-mgmt/pkg-1.1.4_1.tbz

You can also add other commands to the rc.d script, like pkg2ng.

If you don't use ezjail, you can use `pkg_add -C /yourjail' to install
the .tbz file.

-- 
Kyle Williams
Kyle@1970Jan1-epo.ch
PGP key: 0xF9DF9C31



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