diff --git a/technology/applications/package managers/arch-linux/Pacman.md b/technology/applications/package managers/arch-linux/Pacman.md index 5d37c39..f7ffebe 100644 --- a/technology/applications/package managers/arch-linux/Pacman.md +++ b/technology/applications/package managers/arch-linux/Pacman.md @@ -35,7 +35,7 @@ Get information about package: pacman -Si ... ``` -Install a package from local package file (.tar.xz): +Install a package from local package file (.[tar](../../cli/compression/tar.md).[xz](../../../files/XZ%20Compression.md)): ```shell pacman -U ``` diff --git a/technology/files/MIME.md b/technology/files/MIME.md index a4a0814..2f16fbd 100644 --- a/technology/files/MIME.md +++ b/technology/files/MIME.md @@ -46,7 +46,7 @@ Types, subtypes, and parameter names are case-insensitive. Parameter values are | application/x-rpm | rpm | Fedora Package | | application/x-sh | sh | [Shell](../applications/cli/Shell.md) | | application/x-tar | tar | [TAR](../applications/cli/compression/tar.md) | -| application/x-xz | xz | XZ Compression | +| application/x-xz | xz | [XZ Compression](XZ%20Compression.md) | | application/msgpack | - | [MessagePack](MessagePack.md) | | application/toml | .toml | [TOML](TOML.md) | diff --git a/technology/files/XZ Compression.md b/technology/files/XZ Compression.md new file mode 100644 index 0000000..fe3d78c --- /dev/null +++ b/technology/files/XZ Compression.md @@ -0,0 +1,26 @@ +--- +obj: concept +aliases: ["xz"] +--- + +# XZ Compression +XZ is a general-purpose data compression tool that belongs to the family of LZ77-based compressors. It provides high compression ratios and fast decompression, making it suitable for various applications. XZ uses the LZMA2 compression algorithm, which is an improved version of LZMA. + +## Usage +Usage: `xz [OPTION]... [FILE]...` + +### Options +| Option | Description | +| ------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `-z, --compress` | force compression | +| `-d, --decompress` | force decompression | +| `-t, --test` | test compressed file integrity | +| `-l, --list` | list information about .xz files | +| `-k, --keep` | keep (don't delete) input files | +| `-f, --force` | force overwrite of output file and (de)compress links | +| `-c, --stdout` | write to standard output and don't delete input files | +| `-0 ... -9` | compression preset; default is 6; take compressor *and* decompressor memory usage into account before using 7-9! | +| `-e, --extreme` | try to improve compression ratio by using more CPU time; does not affect decompressor memory requirements | +| `-T, --threads=NUM` | use at most NUM threads; the default is 1; set to 0 to use as many threads as there are processor cores | +| `-q, --quiet` | suppress warnings; specify twice to suppress errors too | +| `-v, --verbose` | be verbose; specify twice for even more verbose | \ No newline at end of file