pkg_info +COMMENTS problem

Matthew Seaman m.seaman at
Sat Oct 4 09:40:51 PDT 2003

On Sat, Oct 04, 2003 at 12:00:55PM -0400, srenna at wrote:
> Gave that a shot, but still seeing the same problem
> any other tips?

Perhaps the problem is that one or more of the pkg's doesn't have a
+COMMENT file at all.  Try this:

    # cd /var/db/pkg
    # find . -type d -mindepth 1 -print | sed -e 's,$,/+COMMENT,' | xargs touch -a

However, if there's a pkg installed on your system without a +COMMENT
file, either you're running a pretty old system, or you've somehow
installed a really old pkg.  You should probably just delete and
re-install any pkgs showing this symptom.

Other than that, you can try running 'pkgdb -Fvu' (from the
portupgrade(1) port) which should go a long way towards fixing any
prolems in the package DB.  If that fails, then it's a case of manual
inspection of the whole /var/db/pkg tree to see if you can spot what
is out of place.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list