Date: Fri, 10 May 2013 14:35:40 +0200 From: "Julian H. Stacey" <jhs@berklix.com> To: "Ronald F. Guilmette" <rfg@tristatelogic.com> Cc: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: WANTED: Tool to verify installed package/port consistancy Message-ID: <201305101236.r4ACZeQf011014@fire.js.berklix.net> In-Reply-To: Your message "Thu, 09 May 2013 15:00:23 PDT." <58355.1368136823@server1.tristatelogic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305101236.r4ACZeQf011014>
