Package database problems
Freddie Cash
fjwcash at gmail.com
Thu Nov 16 19:23:38 UTC 2017
On Thu, Nov 16, 2017 at 11:04 AM, Paul Schmehl <pschmehl_lists at tx.rr.com>
wrote:
> That's the problem. The package that installed that file is not installed.
> Nor is the file in the location pkg complains about. Yet, it still
> complains of a conflict and refuses to install the package I'm trying to
> install.
>
> For example, I tried to upgrade devel/oniguruma. It complained about a
> conflict with oniguruma5, specifically /usr/local/bin/onig-config. That
> file does not exist, nor is onigurum5 installed.
>
Install onigurum5, then remove it. Try to install onigurum. That should
reset things in the database.
> I wish there was a pkg command like rebuild-db that would iterate through
> /var/db/pkg and create a valid local.sqlite file that registers the
> packages currently existing on the server.
There's nothing to iterate over. There's nothing in /var/db/pkg anymore
except the SQLite databases.
The only way to "rebuild" local.sqlite is to reinstall everything.
--
Freddie Cash
fjwcash at gmail.com
More information about the freebsd-ports
mailing list