From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 02:03:55 2014 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF310377 for ; Mon, 1 Dec 2014 02:03:55 +0000 (UTC) Received: from mail-pd0-x236.google.com (mail-pd0-x236.google.com [IPv6:2607:f8b0:400e:c02::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B887252 for ; Mon, 1 Dec 2014 02:03:55 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id r10so9790558pdi.41 for ; Sun, 30 Nov 2014 18:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ZGqV6ND+raCjVmIURjrcpPouC2stJTI6NdzYiZRbMyM=; b=Q4odkJFOK98vTTfnfBNUi7XQhSPsgARiej2otnm5x3Tv/+vRJ0zrUeXXU2IJIhYIab K4QZ+5shbS/6X6MPhRCdTQ2mNyz0EPjEu+Ha2Xrgjv85dN5E/E5dWpCDNa7iQBqIBaLB Sp2mWSajiR86d2oLLfcbKz5AKShbjdlyllmoY+HErG5LEgzkx8zkzfrKfyv8WYeGeD9M ujwt2fWuy4XLB0CNppG3OIwx3gl24oqOwQzfnY/n3m5exxwB2Itwv06fezJcqgtkx2rV MuuFn6IjxBePS44NWYvFq7ZdwZxc2+ZLYHonGdRR/9fOOBBBYKkP7SKhcmudDHZNiUev Myxw== X-Received: by 10.68.108.67 with SMTP id hi3mr95767721pbb.19.1417399435196; Sun, 30 Nov 2014 18:03:55 -0800 (PST) Received: from [192.168.111.113] ([120.29.118.79]) by mx.google.com with ESMTPSA id yb8sm16034165pab.7.2014.11.30.18.03.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Nov 2014 18:03:54 -0800 (PST) Message-ID: <547BCC8C.6010509@gmail.com> Date: Mon, 01 Dec 2014 10:03:56 +0800 From: Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Alberto Mijares Subject: Re: Install package inside a no-networked jail from outside References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2014 02:03:55 -0000 Alberto Mijares wrote: > Hi list, > > I have a jail with no network configuration. I'd like to install > packages from outside using pkg. > > I tried -c and -j options but they try to use the networking > enviroment inside the jail, so it fails. > > Any idea? > > Thanks in advance, > > > Alberto Mijares > You have to provide greater details when posting. This sentence is very vague."I'd like to install packages from outside using pkg" Just what do you mean by "outside"? From the HOST??? What?. You could aways host fetch the packages you want to install and put them in a directory inside of the jail directory tree and them exec pkg pointing to location packages were fetched to, or if the packages you want are on the freebsd install disk1, then exec pkg command inside of jail pointing to install cd. A jail without network is pretty much useless.