How to get pkg to recognize local repository?

Matthias Apitz guru at unixarea.de
Mon Jul 17 05:21:11 UTC 2017


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
-- 
Matthias Apitz, ✉ guru at unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
8. Mai 1945: Wer nicht feiert hat den Krieg verloren.
8 de mayo de 1945: Quien no festeja perdió la Guerra.
May 8, 1945: Who does not celebrate lost the War.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20170717/23ee0f29/attachment.sig>


More information about the freebsd-ports mailing list