From owner-freebsd-ports@freebsd.org Mon Jul 17 17:13:49 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95EA6D9AC3B for ; Mon, 17 Jul 2017 17:13:49 +0000 (UTC) (envelope-from papowell@astart.com) Received: from astart2.astart.com (wsip-72-214-30-30.sd.sd.cox.net [72.214.30.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7FCBF680C5 for ; Mon, 17 Jul 2017 17:13:48 +0000 (UTC) (envelope-from papowell@astart.com) Received: from laptop_103.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.9/8.14.9) with ESMTP id v6HHDfkY054008 for ; Mon, 17 Jul 2017 10:13:42 -0700 (PDT) (envelope-from papowell@astart.com) Reply-To: papowell@astart.com Subject: Re: How to get pkg to recognize local repository? References: <20170717052106.GC2368@c720-r314251> To: freebsd-ports@freebsd.org From: Patrick Powell Organization: Astart Technologies Message-ID: <1daa2d98-89d5-c9b4-fd3e-5b34c4c7d7f8@astart.com> Date: Mon, 17 Jul 2017 10:13:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20170717052106.GC2368@c720-r314251> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 17:13:49 -0000 On 07/16/17 22:21, Matthias Apitz wrote: > El día lunes, julio 17, 2017 a las 05:10:06a. m. +0000, Thomas Mueller escribió: > >> How do I get pkg to recognize a local repository such as /mnt/usr/packages/All, or does pkg only recognize remote repositories? >> >> ... > I use: > > $ ls -l /usr/local/etc/pkg/repos/*.conf > -rw-r--r-- 1 root wheel 35 12 mar. 11:05 /usr/local/etc/pkg/repos/FreeBSD.conf > -rw-r--r-- 1 root wheel 96 12 mar. 11:05 /usr/local/etc/pkg/repos/myrepo.conf > $ cat /usr/local/etc/pkg/repos/FreeBSD.conf > > FreeBSD: { enabled: no } > > $ cat /usr/local/etc/pkg/repos/myrepo.conf > > FreeBSD: { > url: "file:///usr/local/PKGDIR.20170304", > enabled: true, > } > > HIH > > matthias Just out of curiosity (and because I might want to do this) how can you specify two (or more) repositories and have them searched in some order. For example, you might have a local respository with some ports/packages that you are currently debugging/fixing. You want pkg to search the local respository first and then if it does not find the packages to use the default (remote) repository. -- Patrick Powell Astart Technologies papowell@astart.com 1530 Jamacha Rd, Suite X Network and System San Diego, CA 92019 Consulting Cell 858-518-7581 FAX 858-751-2435 Web: papowell at astart dot com