From owner-freebsd-pkg@FreeBSD.ORG Wed May 7 14:56:52 2014 Return-Path: Delivered-To: pkg@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 5E1DBBE1 for ; Wed, 7 May 2014 14:56:52 +0000 (UTC) Received: from relay.mailchannels.net (ar-005-i201.relay.mailchannels.net [162.253.144.83]) by mx1.freebsd.org (Postfix) with ESMTP id 9603619B for ; Wed, 7 May 2014 14:56:50 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (unknown [10.218.133.212]) by relay.mailchannels.net (Postfix) with ESMTPA id 6893612240B; Wed, 7 May 2014 14:56:41 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (mail-24.name-services.com [10.244.170.26]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:2500 (trex/5.1.2); Wed, 07 May 2014 14:56:42 GMT X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from%7C107.201.34.133 X-MailChannels-Auth-Id: demandmedia Received: from [10.0.10.1] (107-201-34-133.lightspeed.bcvloh.sbcglobal.net [107.201.34.133]) by mail-24.name-services.com with SMTP; Wed, 7 May 2014 07:56:35 -0700 Message-ID: <536A49A1.8070000@a1poweruser.com> Date: Wed, 07 May 2014 10:56:33 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= Subject: Re: bootstrapping /usr/sbin/pkg inside a jail References: <5369407E.9060008@a1poweruser.com> <53694241.6050207@my.hennepintech.edu> <536A3E10.4030902@a1poweruser.com> <536A42E5.4070608@wasikowski.net> In-Reply-To: <536A42E5.4070608@wasikowski.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 14:56:52 -0000 =C5=81ukasz W=C4=85sikowski wrote: > W dniu 2014-05-07 16:07, Fbsd8 pisze: >=20 >> It's not a question of getting to the internet which ping shows works. >> Its that going to >> ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-current/Latest/ >> using a browser or ftp shows that directory path does not exist. >> >> So it all boils down to, where is pkg program getting the url from and >> why is there difference between host and jail? >> >> This is more a pkgng question then a jail question. >=20 > pkg(8) use location from /usr/local/etc/pkg.conf (before 1.2.x IIRC) an= d > from /usr/local/etc/pkg/repos/ directory in 1.2.x and newer. >=20 This is a fresh virgin install of 10.0. /etc only contains /etc/pkg=20 directory with out any pkg.conf file or other sub-directories until=20 after you exec on the host the first pkg command to bootstrap the=20 downloading and install of pkg itself after which /etc/pkg.conf.sample=20 shows up. Inside of the jail is just like the host was before bootstrap=20 of pkg program.