---
name: "alpm-mtree-validate"
section: "1"
platform: "linux"
package: "alpm-mtree"
version: "0.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/alpm-mtree-validate"
---

# alpm-mtree-validate(1)

Validate an MTREE file

## NAME

alpm-mtree-validate - Validate an MTREE file

## SYNOPSIS

**alpm-mtree validate** \[**-s**\|**--schema**\] \[**-h**\|**--help**\] \[*FILE*\]

## DESCRIPTION

Validate an MTREE file

Validate an MTREE file according to a schema. If the file can be validated, the program exits with no output and a return code of 0. If the file can not be validated, an error is emitted on stderr and the program exits with a non-zero exit code.

## OPTIONS

- **-s**, **--schema** *\<VERSION\>*

  Provide the MTREE schema version to use.

  If no schema version is provided, it will be deduced from the file itself.

  Valid values are \['1', '2'\].

- **-h**, **--help**

  Print help (see a summary with '-h')

- \[*FILE*\]

  An optional file to read from.

  If no file is provided, stdin is used instead.
