From owner-freebsd-ports@FreeBSD.ORG Thu Aug 14 13:31:19 2014 Return-Path: Delivered-To: freebsd-ports@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 ED67D3DF; Thu, 14 Aug 2014 13:31:19 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ABAED26DC; Thu, 14 Aug 2014 13:31:19 +0000 (UTC) Received: from [89.204.135.69] (helo=localhost.my.domain) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1XHv7b-00072e-1b; Thu, 14 Aug 2014 15:31:15 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s7EDVCCM002365; Thu, 14 Aug 2014 15:31:12 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s7EDVBEA002364; Thu, 14 Aug 2014 15:31:11 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 14 Aug 2014 15:31:11 +0200 From: Matthias Apitz To: Nikolai Lifanov Subject: Re: installing packages into a mounted system Message-ID: <20140814133111.GA2346@La-Habana> Reply-To: Matthias Apitz References: <20140814131850.GA28408@sh4-5.1blu.de> <53ECB81E.8040308@mail.lifanov.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53ECB81E.8040308@mail.lifanov.com> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.69 Cc: freebsd-current@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 13:31:20 -0000 El día Thursday, August 14, 2014 a las 09:22:38AM -0400, Nikolai Lifanov escribió: > > # PACKAGESITE=file://PKGDIR export PACKAGESITE > > # chroot /mnt /usr/local/sbin/pkg-static install xorg-7.7 > > Updating repository catalogue > > pkg-static: file://PKGDIR/digests.txz: No such file or directory > > pkg-static: No digest falling back on legacy catalog format > > pkg-static: file://PKGDIR/repo.txz: No such file or directory > > > > >From the man page: > pkg [-v] [-d] [-l] [-N] [-j | -c ] > > You could try copying pkg-static inside the chroot and use pkg-static -c > (from the host, don't invoke the chroot command manually). > > I have been installing packages to jails this way for a while. # pkg-static -c /mnt install xorg-7.7 gives the same error messages as above. Thanks matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign