How to get pkg to recognize local repository?

Thomas Mueller mueller6722 at twc.com
Mon Jul 17 06:44:54 UTC 2017


> > On 17. Jul 2017, at 7:10 AM, Thomas Mueller <mueller6722 at twc.com> wrote:

> > pkg-static: Ignoring bad configuration entry in /usr/local/etc/pkg/repos/mytemprepo.conf: "file:///mnt/usr/packages/All"
> > pkg-static: Warning: Major OS version upgrade detected.  Running "pkg-static install -f pkg" recommended
> > No active remote repositories configured.

> You want to point to file:///mnt/usr/packages instead, it should work given
> the repository meta files are in there.


> Cheers,
> Franco

What meta files?  There is a metamail-2.7_11.txz, but I don't think that's what you meant.

On the drive I was trying to install from, 
ls -l /mnt/usr/packages shows

total 12
drwxr-xr-x  2 root  wheel  7680 Jun 12 07:34 All
drwxr-xr-x  2 root  wheel   512 Jun 12 04:41 Latest

Latest just contains 

lrwxr-xr-x  1 root  wheel  21 Jun 12 04:41 pkg.txz -> ../All/pkg-1.10.1.txz

while ls -rtl /mnt/usr/packages/All shows no meta files.

ls -l /mnt/var/synth/live_packages shows

total 20
drwxr-xr-x  2 root  wheel   512 Jul  2 06:39 All
drwxr-xr-x  2 root  wheel   512 Jul  2 06:04 Latest
-rw-r--r--  1 root  wheel   588 Jul  2 06:25 digests.txz
-rw-r--r--  1 root  wheel   264 Jul  2 06:25 meta.txz
-rw-r--r--  1 root  wheel  1880 Jul  2 06:25 packagesite.txz

and
ls -l /mnt/var/synth/live_packages/All  shows

total 3200
-rw-r--r--  1 root  wheel    98876 Jul  2 06:04 ccache-3.3.4_3.txz
-rw-r--r--  1 root  wheel     5312 Jul  2 06:04 indexinfo-0.2.6.txz
-rw-r--r--  1 root  wheel    16392 Jul  2 06:39 libsigsegv-2.11.txz
-rw-r--r--  1 root  wheel  2984472 Jul  2 06:04 pkg-1.10.1.txz
-rw-r--r--  1 root  wheel    53000 Jul  2 06:39 pkgconf-1.3.7,1.txz
-rw-r--r--  1 root  wheel    42548 Jul  2 06:04 portmaster-3.17.10.txz

That is not all that is installed; "synth upgrade-system" only succeeded on a few packages before crashing (system crash and reboot, I tried a second time with same crash).

ls -rtl /mnt/usr/packages/All shows (not including old deleted packages):

-rw-r--r--  1 root  wheel   2985132 Jun 12 04:41 pkg-1.10.1.txz
-rw-r--r--  1 root  wheel     42552 Jun 12 04:41 portmaster-3.17.10.txz
-rw-r--r--  1 root  wheel    616476 Jun 12 04:46 libiconv-1.14_10.txz
-rw-r--r--  1 root  wheel       504 Jun 12 05:08 gettext-0.19.8.1.txz
-rw-r--r--  1 root  wheel     98916 Jun 12 06:02 ccache-3.3.4_3.txz
-rw-r--r--  1 root  wheel      5312 Jun 12 06:02 indexinfo-0.2.6.txz
-rw-r--r--  1 root  wheel    152516 Jun 12 06:02 gettext-runtime-0.19.8.1_1.txz
-rw-r--r--  1 root  wheel   2329976 Jun 12 06:04 gettext-tools-0.19.8.1.txz
-rw-r--r--  1 root  wheel    388288 Jun 12 06:04 gmake-4.2.1_1.txz
-rw-r--r--  1 root  wheel     52988 Jun 12 06:04 pkgconf-1.3.7,1.txz
-rw-r--r--  1 root  wheel   1485748 Jun 12 06:05 ncurses-6.0_3.txz
-rw-r--r--  1 root  wheel     16372 Jun 12 06:05 libsigsegv-2.11.txz
-rw-r--r--  1 root  wheel  14399996 Jun 12 06:09 perl5-5.26.0.txz
-rw-r--r--  1 root  wheel     16844 Jun 12 06:09 p5-Locale-gettext-1.07.txz
-rw-r--r--  1 root  wheel    139420 Jun 12 06:10 help2man-1.47.4.txz
-rw-r--r--  1 root  wheel   1248316 Jun 12 06:10 texinfo-6.3_2,1.txz
-rw-r--r--  1 root  wheel    209540 Jun 12 06:11 m4-1.4.18,1.txz
-rw-r--r--  1 root  wheel    515372 Jun 12 06:11 bison-3.0.4,1.txz
-rw-r--r--  1 root  wheel    475256 Jun 12 06:13 gmp-6.1.2.txz
-rw-r--r--  1 root  wheel    371092 Jun 12 06:14 mpfr-3.1.5_1.txz
-rw-r--r--  1 root  wheel  20079120 Jun 12 06:25 binutils-2.28,1.txz
-rw-r--r--  1 root  wheel     75100 Jun 12 06:25 mpc-1.0.3.txz
-rw-r--r--  1 root  wheel  32102776 Jun 12 07:33 gcc6-aux-20170202_1.txz
-rw-r--r--  1 root  wheel    385796 Jun 12 07:34 adacurses-20150808_4.txz
-rw-r--r--  1 root  wheel     21744 Jun 12 07:34 ini_file_manager-03_2.txz
-rw-r--r--  1 root  wheel    666432 Jun 12 07:34 synth-1.69.txz

But how would I get those packages copied/installed and see if synth works better on the other computer?

from Matthias Apitz:

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

What is /usr/local/PKGDIR.20170304 , how do you get a file by that name?  

ls -l /mnt/usr/local shows

total 104
drwxr-xr-x   2 root  wheel  16896 Jun 12 07:34 bin
drwxr-xr-x  10 root  wheel   1024 Jul  2 06:01 etc
drwxr-xr-x   6 root  wheel    512 Jun 12 07:32 gcc6-aux
drwxr-xr-x   9 root  wheel   2560 Jun 12 07:34 include
drwxr-xr-x   2 root  wheel   1024 Jun 12 06:25 info
drwxr-xr-x  19 root  wheel  32256 Jun 12 07:34 lib
drwxr-xr-x   5 root  wheel    512 Jun 12 06:09 libdata
drwxr-xr-x   4 root  wheel   1536 Jun 12 07:34 libexec
drwxr-xr-x   3 root  wheel    512 Jun 12 05:39 llvm33
drwxr-xr-x  44 root  wheel   1024 Jun 12 06:10 man
drwxr-xr-x   2 root  wheel    512 Jun 12 05:40 sbin
drwxr-xr-x  29 root  wheel   2048 Jun 12 07:34 share
drwxr-xr-x   2 root  wheel    512 Jun  3  2014 tests
drwxr-xr-x   2 root  wheel    512 Dec 16  2013 www
drwxr-xr-x   4 root  wheel    512 Jun 12 06:24 x86_64-portbld-freebsd11.1

Tom



More information about the freebsd-ports mailing list