WANTED: Tool to verify installed package/port consistancy
Julian H. Stacey
jhs at berklix.com
Fri May 10 12:36:34 UTC 2013
"Ronald F. Guilmette" wrote:
>
> The subject line pretty much says it all.
Additional to other ideas so far,
You could also make a chroot, install normal bins from src,
install all your ports, ^D to exit chroot, then do a compare & strip with eg:
cd chroot ;
find . -type f -exec cmpd -d {} / \;
# compare & delete http://berklix.com/~jhs/src/bsd/jhs/bin/public/cmpd/
find . -type l | xargs rm
find . -type d -depth -exec rmdir {} \;
find . -type f -print | sort | more
then consider what got trashed, where, & maybe why,
& then reinstall from ports, or crudely
cd /chroot/var/db/pkg ; tar cf - */+CONTENTS| (cd /var/db/pkg && tar xf -)
PS I find /usr/ports/textproc/mgdiff nice for a visual diff of 2 files.
( if theres lots of small changes in a file )
Cheers,
Julian
--
Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com
Reply below not above, like a play script. Indent old text with "> ".
Send plain text. No quoted-printable, HTML, base64, multipart/alternative.
More information about the freebsd-ports
mailing list