pkg-install(8), url: "file://" and PKG_CACHEDIR

Harry Schmalzbauer freebsd at omnilan.de
Fri Jun 27 18:33:04 UTC 2014


Bezüglich Bryan Drewery's Nachricht vom 27.06.2014 00:46 (localtime):
> On 6/26/14, 5:28 PM, Baptiste Daroussin wrote:
>> On Thu, Jun 26, 2014 at 11:29:06AM -0500, Bryan Drewery wrote:
>>> Moving to pkg at FreeBSD.org
…
>>>> starts with "file://" (in ${PRREFIX}/pkg/repos/mylocalrepo.conf).
>>>>
>>>> Currently, local available packages will be copied to the local cache
>>>> dir by default (if not circumvented by 'env
>>>> PKG_CACHEDIR=/path/to/local-repo pkg install …' e.g.).
>>>> Such a PKG_CACHEDIR-matching-logic should be enabled by default IMHO.
>>>
>>> Warning, this will stop working in pkg 1.3 and cause many problems in
>>> your repo. The filenames are stored differently in the cachedir and now
>>> symlinks are used to point to the newly cached files - which will remove
>>> all of your existing packages.

Thanks a lot for that warning!

>>>> Maybe it's usefull to have a "pkg-install -K" option, (like -K,--keep
>>>> for old pkg_add), to disable the PKG_CACHEDIR-mathcing-logic (for
>>>> example if someone provides cd-repo and intentionally wants to keep
>>>> packages in PKG_CACHEDIR).
…
>>> I will take a look before 1.3 release to see if disabling cache for
>>> file:// is straight forward. We're in a feature freeze right now so I
>>> don't want to introduce too much risk.
>>
>> IIRC I already disabled cache for file:// in pkg 1.3
>>
>> regards,
>> Bapt
>>
> 
> Yup.

Very nice! Set WITH_PKGNG to devel in my make.conf(.ports) and try soon!

Thanks a lot, posted to stable@ in case any one else was interested.

-Harry



More information about the freebsd-stable mailing list