pkg: fetching binary packages to a local dumpdir for a different ABI

Matthew Seaman matthew at FreeBSD.org
Fri Mar 11 11:23:30 UTC 2016


On 03/11/16 09:42, O. Hartmann wrote:
> The process will require 4 GiB more space.
> 4 GiB to be downloaded.
> Fetching pkg-1.6.4_1.txz: 100%    3 MiB 562.3kB/s    00:05    
> pkg-static: cached package pkg-1.6.4_1: size mismatch, fetching from remote
> Fetching pkg-1.6.4_1.txz: 100%    3 MiB 562.3kB/s    00:05    
> pkg-static: cached package pkg-1.6.4_1: size mismatch, cannot continue
> 
> Well, it seems clear - somewhere (on that specific box nowhere!) is a cache and
> the size-hash is compared - but where? The list in pkglist contains also
> ports-mgmt/pkg and it is the first package to be fetched.

At a guess you're mixing packages from one architecture with the package
catalogue from a different one.

You can achieve what you want, but you should use a tailored
${LOCALBASE}/etc/pkg.conf with custom settings for ABI, PKG_CACHEDIR and
PKG_DBDIR.

In principle it is possible to install packages for a foreign
architecture using this sort of setup: that's what the '-R' flag to
pkg(8) is all about -- so you can build a system image for a foreign
arch on eg. a micro SD card you've mounted onto your filesystem but be
able to store its package database and caches offline.

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160311/7bfa0996/attachment.sig>


More information about the freebsd-ports mailing list