[arch-general] Tool to create mtree

Sébastien Leblanc leblancsebas at gmail.com
Wed Apr 29 13:14:00 UTC 2015


On 29 April 2015 at 08:43, Magnus Therning <magnus at therning.org> wrote:
> When looking at the internals of an Arch package I learned about the
> mtree format.  However, I didn't find any tool to create an mtree file
> myself.

It seems like the line that produces the .MTREE file is simply using
`bsdtar`:

From
https://projects.archlinux.org/pacman.git/tree/scripts/makepkg.sh.in#n1940:

    msg2 "$(gettext "Generating .MTREE file...")"
    LANG=C bsdtar -czf .MTREE --format=mtree \

--options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' \
        "${comp_files[@]}" *
    comp_files+=(".MTREE")

-- 
Sébastien Leblanc


More information about the arch-general mailing list