mirror of https://github.com/CrimsonTome/tldr.git
1.1 KiB
1.1 KiB
sqfstar
Create a squashfs filesystem from a tar archive. More information: https://manned.org/sqfstar.
- Create a squashfs filesystem (compressed using
gzip
by default) from an uncompressedtar
archive:
sqfstar {{filesystem.squashfs}} < {{archive.tar}}
- Create a squashfs filesystem from a
tar
archive compressed withgzip
, and [comp]ress the filesystem using a specific algorithm:
zcat {{archive.tar.gz}} | sqfstar -comp {{gzip|lzo|lz4|xz|zstd|lzma}} {{filesystem.squashfs}}
- Create a squashfs filesystem from a
tar
archive compressed withxz
, excluding some of the files:
xzcat {{archive.tar.xz}} | sqfstar {{filesystem.squashfs}} {{file1 file2 ...}}
- Create a squashfs filesystem from a
tar
archive compressed withzstd
, excluding files ending with.gz
:
zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"
- Create a squashfs filesystem from a
tar
archive compressed withlz4
, excluding files matching a regular expression:
lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"