WANTED: Tool to verify installed package/port consistancy

Ronald F. Guilmette rfg at tristatelogic.com
Mon May 13 23:52:56 UTC 2013


So, as I have now learned (and just as the post by CyberLeo Kitsana had
suggested) if one wishes to write a script to do the rough equivalent
of what "pkg_info -g" does, then one has to be mindful of the fact that
for those specific MD5 checksums contained in the various +CONTENTS
files within the /var/db/pkg directory where the relevant installed
file happend to be a symlink, you must not calculate the MD5 checksum
on the file the symlink points to, but rather on the contents of the
symlink itself, as obtained by running "readlink -n".

Making that small adjustment to my script, re-installing my many missing
CONTENTS files from a backup I had, and running my little pkg_sanity
script as root (in order to avoid a few annoying permissions problems)
it seems that my system is now mostly back to a state of good health.
However there sill remain a handful of puzzling results:

pkg_sanity: gettext-0.18.1.1: /usr/local/lib/charset.alias: File failed MD5 checksum
pkg_sanity: gettext-0.18.1.1: /usr/local/lib/charset.alias: 4d9c898966e87b62589a1c44dc8297f6 versus fe5bae66620b10c76971d99932b18846
pkg_sanity: linux_base-f10-10_5: /compat/linux/etc/ld.so.cache: File failed MD5 checksum
pkg_sanity: linux_base-f10-10_5: /compat/linux/etc/ld.so.cache: 6f66c7adc696059c6dfdf04c4ff3adb8 versus dfe04fabc88d1fd3e40b14a7f47acd8e
pkg_sanity: linux_base-f10-10_5: /compat/linux/var/cache/ldconfig/aux-cache: File failed MD5 checksum
pkg_sanity: linux_base-f10-10_5: /compat/linux/var/cache/ldconfig/aux-cache: 3d561b01a69ad4357c92de3a5032d52b versus f8be26f0de9b1736b4b9837f07b550d7
pkg_sanity: p5-XML-SAX-0.99: /usr/local/lib/perl5/site_perl/5.14.2/XML/SAX/ParserDetails.ini: File failed MD5 checksum
pkg_sanity: p5-XML-SAX-0.99: /usr/local/lib/perl5/site_perl/5.14.2/XML/SAX/ParserDetails.ini: 15bfbb02aa79670b148f21dfbac64843 versus cf8c5cb8a7b6cf7a8db7c53f1ba27148

I've checked and "pkg_info -g" also reports MD5 checksum mismatches
on the four files mentioned above.

If other folks could run the following command and let me know
what results you see on your system, I would really appreciate
it.  thanks.

   pkg_info -g 'gettext*' 'linux_base*' 'p5-XML-SAX*'


Regards,
rfg


P.S.  Oh lord!  Now pkg_version is issuing a different kind of complaint
about four of my installed packages...

pkg_version: icon-naming-utils-0.8.90 does not appear to be a valid package!
pkg_version: p5-Net-HTTP-6.06 does not appear to be a valid package!
pkg_version: p5-XML-Simple-2.20 does not appear to be a valid package!
pkg_version: p5-libwww-6.05 does not appear to be a valid package!

Now I feel compelled to figure out the cause of this problem too.

Just when I thought that I was out they keep pulling me back in!!!
Arrrrrgggggggggggg!!!!


More information about the freebsd-ports mailing list