Re: Tool to create mtree

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



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")

-- 
Sébastien Leblanc


[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