[arch-general] Tool to create mtree

Magnus Therning magnus at therning.org
Wed Apr 29 14:34:02 UTC 2015


On Wed, Apr 29, 2015 at 09:14:00AM -0400, Sébastien Leblanc wrote:
> 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")

Ah, yes, look at that :)  Thanks!

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

A system is composed of components: a component is something you
understand.
     -- Professor Howard Aiken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20150429/5a0accd2/attachment.asc>


More information about the arch-general mailing list