Re: Tool to create mtree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Apr 29, 2015 at 09:14:00AM -0400, Sébastien Leblanc wrote:
> On 29 April 2015 at 08:43, Magnus Therning <magnus@xxxxxxxxxxxx> 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@xxxxxxxxxxxx   jabber: magnus@xxxxxxxxxxxx
twitter: magthe               http://therning.org/magnus

A system is composed of components: a component is something you
understand.
     -- Professor Howard Aiken

Attachment: pgp2ISlWiIodz.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux