From owner-freebsd-current@FreeBSD.ORG Thu Aug 14 19:00:34 2014 Return-Path: Delivered-To: freebsd-current@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 93ECF137; Thu, 14 Aug 2014 19:00:34 +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 50BB0204B; Thu, 14 Aug 2014 19:00:34 +0000 (UTC) Received: from [89.204.139.187] (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 1XI0GE-0006Sp-CN; Thu, 14 Aug 2014 21:00:30 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s7EJ0Rv1001518; Thu, 14 Aug 2014 21:00:27 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s7EJ0QDc001517; Thu, 14 Aug 2014 21:00:26 +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 21:00:26 +0200 From: Matthias Apitz To: Michael Gmelin Subject: Re: installing packages into a mounted system Message-ID: <20140814190025.GA1479@La-Habana> Reply-To: Matthias Apitz References: <20140814131850.GA28408@sh4-5.1blu.de> <53ECB81E.8040308@mail.lifanov.com> <20140814133111.GA2346@La-Habana> <20140814154356.16dcac46@bsd64.grem.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20140814154356.16dcac46@bsd64.grem.de> 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.139.187 Cc: freebsd-current@freebsd.org, Nikolai Lifanov , freebsd-ports@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 19:00:34 -0000 Hello, To close this thread: after reading and understandig how it should work, I have found the following easy solution: # chroot /mnt pkg-static repo /PKGDIR Creating repository in /PKGDIR: 83% ... Packing files for repository: 100% # chroot /mnt mkdir -p /usr/local/etc/pkg/repos # vim /mnt/usr/local/etc/pkg/repos/myrepo.conf # cat /mnt/usr/local/etc/pkg/repos/myrepo.conf FreeBSD: { url: "file:/PKGDIR", enabled: true, } # chroot /mnt pkg-static -R /usr/local/etc/pkg/repos/ install autoconf-2.69 Updating repository catalogue FreeBSD repository is up-to-date All repositories are up-to-date The following 5 packages will be affected (of 0 checked): New packages to be INSTALLED: autoconf: 2.69 indexinfo: 0.2 perl5: 5.16.3_11 m4: 1.4.17_1,1 autoconf-wrapper: 20131203 The process will require 45 MB more space 13 MB to be downloaded Proceed with this action [y/N]: y Fetching autoconf-2.69.txz: 100% of 529 KB Fetching indexinfo-0.2.txz: 100% of 6 KB Fetching perl5-5.16.3_11.txz: 100% of 12 MB Fetching m4-1.4.17_1,1.txz: 100% of 183 KB Fetching autoconf-wrapper-20131203.txz: 100% of 4 KB Checking integrity... done (0 conflicting) [1/5] Installing indexinfo-0.2: 100% [2/5] Installing perl5-5.16.3_11: 100% [3/5] Installing m4-1.4.17_1,1: 100% [4/5] Installing autoconf-wrapper-20131203: 100% [5/5] Installing autoconf-2.69: 100% # chroot /mnt pkg-static info autoconf-2.69 Automatically configure source code on many Un*x platforms autoconf-wrapper-20131203 Wrapper script for GNU autoconf indexinfo-0.2 Utility to regenerate the GNU info page index m4-1.4.17_1,1 GNU m4 perl5-5.16.3_11 Practical Extraction and Report Language Works fine. Thanks to the people who designed this new pkg tool. 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