From owner-freebsd-questions@freebsd.org Wed Jan 15 20:53:30 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF0191FCF1E for ; Wed, 15 Jan 2020 20:53:30 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "holgerdanske.com", Issuer "holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yfgG253Zz40YQ for ; Wed, 15 Jan 2020 20:53:30 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 ([99.100.19.101]) by holgerdanske.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Wed, 15 Jan 2020 12:53:22 -0800 Subject: Re: fmtree: line 0: unknown keyword sha256digest To: freebsd-questions@freebsd.org References: <20200115200301.GA60201@neutralgood.org> From: David Christensen Message-ID: <84b423e8-8289-2063-35b6-6d3625312c37@holgerdanske.com> Date: Wed, 15 Jan 2020 12:53:21 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200115200301.GA60201@neutralgood.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47yfgG253Zz40YQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 184.105.128.27) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-1.45 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.786,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.59)[ipnet: 184.104.0.0/15(0.70), asn: 6939(-3.57), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.981,0]; DMARC_NA(0.00)[holgerdanske.com]; RCVD_IN_DNSWL_NONE(0.00)[27.128.105.184.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 20:53:31 -0000 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@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