fmtree: line 0: unknown keyword sha256digest
David Christensen
dpchrist at holgerdanske.com
Wed Jan 15 20:53:31 UTC 2020
On 2020-01-15 12:03, Kevin P. Neal wrote:
> On Wed, Jan 15, 2020 at 11:47:48AM -0800, David Christensen wrote:
>> freebsd-questions:
>>
>> I am migrating data between machines and operating systems (Debian 9 and
>> FreeBSD 12.1) and would like to do file integrity checking:
>
>> The equivalent tool is pronounced fmtree(8) on Debian (package
>> freebsd-buildutils). It does not seem to understand the sha256digest
>> keyword (?):
>>
>> https://manpages.debian.org/stretch/freebsd-buildutils/fmtree.8.en.html
>
> It sounds like their version of mtree is out of date. It may not be able
> to compare file contents.
Thanks for the reply. :-)
Stretch appears to be at least one version behind:
https://packages.debian.org/search?keywords=freebsd-buildutils&searchon=names&suite=all§ion=all
And, I do not see a backport:
https://packages.debian.org/search?keywords=freebsd-buildutils&searchon=names§ion=all&suite=stretch-backports
I'm trying to decide if/ how to build from source.
> Do they have the md5 command, or any of the other commands in FreeBSD's
> md5 man page?
>
> find ${startdir} -type f -print | sort | xargs md5 > orig.txt
>
> Repeat on the new machine:
> find ${startdir} -type f -print | sort | xargs md5 > new.txt
>
> Then diff orig.txt and new.txt
FreeBSD:
2020-01-15 12:44:31 dpchrist at soho ~
$ touch empty
2020-01-15 12:44:33 dpchrist at soho ~
$ md5 empty
MD5 (empty) = d41d8cd98f00b204e9800998ecf8427e
On Debian, md5 is pronounced "md5sum" and requires the --tag option to
obtain BSD-style output:
2020-01-15 12:43:55 dpchrist at po ~
$ touch empty
2020-01-15 12:44:59 dpchrist at po ~
$ md5sum -b --tag empty
MD5 (empty) = d41d8cd98f00b204e9800998ecf8427e
David
More information about the freebsd-questions
mailing list