Re: mtree: exclude keywords from being checked

RVP <[email protected]> Wed, 13 Aug 2025 10:16:08 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Wed, 13 Aug 2025, Edgar Fuß wrote:

> In mtree, how do I exclude keywords present in the specification from being
> checked against the on-filesystem value? E.g, the spec contains md5, but I
> don't want mtree to compare that to the actual files?
>

Use spec. conversion (-C) with -R/-K/-k:

```
mtree -R md5,size -C < /etc/mtree/set.base | mtree -ep /
```

-RVP