add xz compression
This commit is contained in:
parent
efd0c70fb0
commit
b311f757cf
3 changed files with 28 additions and 2 deletions
|
@ -35,7 +35,7 @@ Get information about package:
|
||||||
pacman -Si <package>...
|
pacman -Si <package>...
|
||||||
```
|
```
|
||||||
|
|
||||||
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
|
```shell
|
||||||
pacman -U <file>
|
pacman -U <file>
|
||||||
```
|
```
|
||||||
|
|
|
@ -46,7 +46,7 @@ Types, subtypes, and parameter names are case-insensitive. Parameter values are
|
||||||
| application/x-rpm | rpm | Fedora Package |
|
| application/x-rpm | rpm | Fedora Package |
|
||||||
| application/x-sh | sh | [Shell](../applications/cli/Shell.md) |
|
| application/x-sh | sh | [Shell](../applications/cli/Shell.md) |
|
||||||
| application/x-tar | tar | [TAR](../applications/cli/compression/tar.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/msgpack | - | [MessagePack](MessagePack.md) |
|
||||||
| application/toml | .toml | [TOML](TOML.md) |
|
| application/toml | .toml | [TOML](TOML.md) |
|
||||||
|
|
||||||
|
|
26
technology/files/XZ Compression.md
Normal file
26
technology/files/XZ Compression.md
Normal file
|
@ -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 |
|
Loading…
Reference in a new issue