Cache pkg ng downloads for multiple installations?

Hello,

I want to install some binary packages, of course. But I also need some of those packages in a jail. Is there a way PKGNG can 'cache' (like in a local repository or something) certain packages it downloads so that I can later install them in my jail without having to re-download all the said packages over again?

Thanks.
 
FreeBSoD said:
Is there a way pkg ng can 'cache' (like in a local repo or something) certain packages it downloads so that I can later install them in my jail without having to re-download all the said packages over again?
This is already done by default. Check man 5 pkg.conf:
PKG_CACHEDIR: string
Specifies the cache directory for packages.
The default value for this option is /var/cache/pkg

So you should find all the packages that have been downloaded so far in /var/cache/pkg.
And you may also set a different path in your /usr/local/etc/pkg.conf file, like so:
Code:
PKG_CACHEDIR: /some/path
 
Ah that feels like a stupid question now, thanks.

@wblock@, I was actually hoping for a "local repository" of sorts, however, mounting the cache in various places will suffice.
 
Last edited by a moderator:
Back
Top