From owner-freebsd-questions@FreeBSD.ORG Tue Nov 12 20:28:52 2013 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 595458B1 for ; Tue, 12 Nov 2013 20:28:52 +0000 (UTC) Received: from mail.1970jan1-epo.ch (1970jan1-epo.ch [37.252.125.93]) by mx1.freebsd.org (Postfix) with ESMTP id 2297423CF for ; Tue, 12 Nov 2013 20:28:51 +0000 (UTC) Received: from 1970jan1-epo.ch (184-63-79-123.cust.wildblue.net [184.63.79.123]) by mail.1970jan1-epo.ch (Postfix) with ESMTPSA id ACB301FEE90; Tue, 12 Nov 2013 20:21:33 +0000 (UTC) Date: Tue, 12 Nov 2013 12:19:38 -0800 From: Kyle Williams To: Hung Son Nguyen Subject: Re: Bootstrapping pkg the FreeBSD Jail Message-ID: <20131112201938.GA13195@1970jan1-epo.ch> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@FreeBSD.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 20:28:52 -0000 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