Forcing pkg
Michael Ross
gmx at ross.cx
Fri Sep 5 11:54:37 UTC 2014
On Fri, 05 Sep 2014 07:46:49 +0200, Glen Barber <gjb at freebsd.org> wrote:
> On Fri, Sep 05, 2014 at 06:30:14AM +0100, Ben Morrow wrote:
>> Quoth "Michael Ross" <gmx at ross.cx>:
>> > >
>> > >> Is there any equivalent to "pkg_add --force"?
>> > >
>> > > [...]
>
>> > > tar xf mypkg.txz
>> > >
>> > > and move those extracted stuff to the place where it's needed.
>> >
>
>> [...]
>
>>
>> I suspect that would break the database, which, because it's now SQL,
>> would matter a lot more than before. What you can do is
>>
>> tar -xf $pkg +MANIFEST
>> vi ./+MANIFEST
>> tar -cf nomanifest --exclude +MANIFEST @$pkg
>> tar -cJf $newpkg +MANIFEST @nomanifest
>>
>
> Sigh. Maybe I'm lost. So, I have to ask.
>
> Why, exactly, are we suggesting unpacking packaged packages into temp
> directories and arbitrarily "doing things" with their contents?
>
> Glen
>
Because I can't force a package installation anymore.
If pkg detects <something>, it won't let me say "nevermind, install X
anyway, and do just that".
Just to be clear,
for the "with poudriere"-use case pkg is a fine tool,
and it will prove very valuable.
It just doesn't to quick and dirty as I used to do quick and dirty with
pkg_add.
Michael
More information about the freebsd-stable
mailing list