Have I damaged my ports database?

Fernan Aguero fernan at iib.unsam.edu.ar
Wed Sep 3 10:12:09 PDT 2003

+----[ stan <stanb at panix.com> (03.Sep.2003 11:15):
| pkg_delete: /var/db/pkg/gnomesession-2.2.2_1/+CONTENTS: No such file or directory


I've run into something similar recently.

Just create an empty +CONTENTS file, and run pkgdb -F again. It
will complain that the port has no origin, let it fix it.
Now the +CONTENTS file will contain just one line and you
will be able to install ports again (do this for all the
ports that have missing +CONTENTS files).

Note that you will have problems trying to remove
(deinstall, pkg_delete) ports with such a minimal +CONTENTS
file. If you also need to do this (it's a good idea),
checkout the port of the same PORTVERSION and PORTREVISION
using cvs, remove the corresponding directory under
/var/db/pkg, and install the checked out port. This will
hopefully produce a clean register in PKGDB that you can use
to then remove the port cleanly or to install a newer

Hope this helps,


F e r n a n   A g u e r o

More information about the freebsd-ports mailing list