Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2015 13:25:09 +0100
From:      olli hauer <ohauer@gmx.de>
To:        freebsd-current@freebsd.org
Cc:        Matthias Apitz <guru@unixarea.de>
Subject:   Re: pkg does not update the repo catalogue
Message-ID:  <56657AA5.1050002@gmx.de>
In-Reply-To: <20151207085043.GA3047@c720-r285885-amd64>
References:  <20151207085043.GA3047@c720-r285885-amd64>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2015-12-07 09:50, Matthias Apitz wrote:
> 
> Hello,
> 
> This is with 11-CURRENT and ports from July this year; I have the
> packages which I build with poudriere on some other host in a dir
> /usr/PKGDIR.20150726 and added 8 new packages there, the total number is
> now 1691:
> 
> # ls *.txz | egrep -v 'packagesite.txz|meta.txz|digests.txz' | wc -l 
>     1691
> 
> My repo definition is:
> 
> # cat /usr/local/etc/pkg/repos/myrepo.conf
>            FreeBSD: {
>                url: "file:/usr/PKGDIR.20150726",
>                enabled: true,
>            }
> 
> When I now want to update the 8 new packages to the repo catalogue, they
> are not added (i.e. the number stays with 1683 and I also can not
> install them with 'pkg instal ...'):
> 
> # pkg -v
> 1.5.5
> # pkg -R /usr/local/etc/pkg/repos/ update -f
> Updating FreeBSD repository catalogue...
> Fetching meta.txz: 100%    260 B   0.3kB/s    00:01    
> Fetching packagesite.txz: 100%  382 KiB 391.6kB/s    00:01    
> Processing entries: 100%
> FreeBSD repository update completed. 1683 packages processed.
> 
> What I'm missing here?
> 
> Thanks
> 
> 	matthias

Hi Matthias,

I see some possible issues.

- repo has same name as the official one (FreeBSD, see `cat /etc/pkg/FreeBSD.conf')
- file:/$path should be file:///$path
- repo catalog was not updated with command `pkg repo'
- REPO_AUTOUPDATE = true/false (in pkg.conf)

Does your repo match the output of the command
$ pkg -vv (all below Repositories:)



-- 
olli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56657AA5.1050002>