Package database problems

Kevin Oberman rkoberman at gmail.com
Sun Nov 19 20:27:57 UTC 2017


On Fri, Nov 17, 2017 at 5:41 PM, Paul Schmehl <pschmehl_lists at tx.rr.com>
wrote:

> --On November 17, 2017 at 9:39:15 AM +0100 Kurt Jaeger <lists at opsec.eu>
> wrote:
>
> Hi!
>>
>> >> I didn't setup this server to begin with. I recall, a
>>> >> while back, instructions for switching to pkgng. Is that what wasn't
>>> >> done?
>>>
>>
>> > Yes, something like that.
>>>
>>
>> Should I run pkg2ng now? Would that help?
>>>
>>
>> I'm not sure it would help.
>>
>
> I managed to fix the problem by a combination of installing major
> languages (perl, php, ruby and python) and their dependencies, running pkg
> autoremove -n and deleting unwanted and unneeded ports, and then running
> portmaster to complete the updates of out of date ports.
>
> I do have one concern, however. (There may be others I'm unaware of.) When
> I ran pkg -r devel/oniguruma, it showed no dependencies. In fact, it was
> listed by autoremove. But I know php ports depend on it. Is there a way to
> update dependencies that are not listed?
>
> If not, I'll probably uninstall oniguruma and then reinstall php, which
> *should* force the reinstall of oniguruma and update the dependency tree.
>
> It sure would be nice if pkg could do this for me by simply relinking the
> dependencies.
>
> Paul Schmehl, Retired


Just for the record, portmaster creates all of those directories in
/var/db/pkg and they all should contain the file distfiles which contains
th contents of an installed port's distfiles since they are lost when the
/usr/ports are updated. It i needed for portmaster to do --clean-distfiles
where you don't want to delete a distfile until after a port is upgraded,
not after the /usr/ports is updated. If you never use --clean-distfiles,
deleting them should not be an issue, but is not going to make a difference
and I find running the option once and a while to be useful.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-ports mailing list