From owner-freebsd-ports@freebsd.org Tue Jul 18 02:33:26 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 84EDEC7A17E for ; Tue, 18 Jul 2017 02:33:26 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dnvrco-oedge-vip.email.rr.com", Issuer "dnvrco-oedge-vip.email.rr.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 679DA811AF for ; Tue, 18 Jul 2017 02:33:25 +0000 (UTC) (envelope-from mueller6722@twc.com) Received: from [74.134.208.22] ([74.134.208.22:41162] helo=localhost) by dnvrco-omsmta03 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 9B/30-25786-4737D695; Tue, 18 Jul 2017 02:33:25 +0000 Date: Tue, 18 Jul 2017 02:33:22 +0000 Message-ID: <9B.30.25786.4737D695@dnvrco-omsmta03> From: "Thomas Mueller" To: freebsd-ports@freebsd.org Subject: Re: How to get pkg to recognize local repository? Mail-Followup-To: Matthias Apitz , Thomas Mueller , freebsd-ports@freebsd.org References: <20170717052106.GC2368@c720-r31425> <053AE5F1-4FF1-40AB-B768-D43AD5B29D21@lastsummer.de> X-RR-Connecting-IP: 107.14.64.88:25 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: Tue, 18 Jul 2017 02:33:26 -0000 from Franco Fichtner: # pkg repo /mnt/usr/packages Would that put meta.txz and other stuff in /usr/packages ? I could do that either by nfs (with /mnt) or directly on that computer (without /mnt). But I have all the old stuff I no longer want, would not run because of shared libraries out of sync: 223 packages I didn't show. How to delete? Or more generally, how to delete old packages in /usr/packages/All in a reasonable time? Midnight Commander, which I recently installed on NetBSD but have not yet used? > 17.07.2017 08:10, Thomas Mueller пишет: > > How do I get pkg to recognize a local repository > It is documented at PKG-REPOSITORY(5) . [1] > > What is the proper URL or format for a file name/directory? Is it necessary to precede with URL: or what do I have to do to make it look like a repository? > It is mentioned at [1]: the scheme is documented at FETCH(3) . > HTH > WBR, Boris Samorodov (bsam) This looks like it might help, but PKG-REPOSITORY and FETCH have to be lower-case, won't work with capital letters. Excerpt from Adam Weinberger: > myfirstrepo: { > url: file:///path/to/first/repo, > priority: 99 > }, > mysecondrepo: { > url: file:///path/to/second/repo, > priority: 98 > } I suppose priority 99 would take priority over priority 98? In normal English usage, first priority or priority one is higher than priority two. Do you need the comma after the closing brace after myfirstrepo? I suppose myfirst repo and mysecondrepo are both in the same .conf file? Tom