Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2020 12:53:21 -0800
From:      David Christensen <dpchrist@holgerdanske.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: fmtree: line 0: unknown keyword sha256digest
Message-ID:  <84b423e8-8289-2063-35b6-6d3625312c37@holgerdanske.com>
In-Reply-To: <20200115200301.GA60201@neutralgood.org>
References:  <b0087268-1abc-c92f-94b2-3f9dc71ea86d@holgerdanske.com> <20200115200301.GA60201@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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&section=all


And, I do not see a backport:

https://packages.debian.org/search?keywords=freebsd-buildutils&searchon=names&section=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@soho ~
$ touch empty

2020-01-15 12:44:33 dpchrist@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@po ~
$ touch empty

2020-01-15 12:44:59 dpchrist@po ~
$ md5sum -b --tag empty
MD5 (empty) = d41d8cd98f00b204e9800998ecf8427e


David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84b423e8-8289-2063-35b6-6d3625312c37>