ZUPDATE(1)
π zupdate(1) β the manual page, but make it make sense π
okay bestie, so this is zupdate, a User Command, and it's about to be your new fave little utility, no cap. it lives in the zutils family (we're on version 1.15, dated May 2025, more on that at the end β¨).
πΈ NAME πΈ
zupdate β recompress bzip2, gzip, xz, zstd files to lzip format π¦
like, it takes your old-school compressed files and glows them up into lzip. that's the whole vibe.
β¨ SYNOPSIS β¨
zupdate [options] [files]
that's it. options, then files. iconic simplicity π
π DESCRIPTION π
okay so here's the tea π: zupdate recompresses files from bzip2, gzip, xz, and zstd formats to lzip format. each original gets compared with the new file, and then β and this is the main character moment β it gets deleted. periodt.
only regular files with standard file name extensions get recompressed, bestie. everything else is politely ignored, like that one group chat you muted π.
compressed files are decompressed and then recompressed on the fly; no temporary files are created. literally none. clean. the lzip format is chosen as the destination because it's the most appropriate for long-term archiving β it's giving longevity, it's giving archival queen π.
if no files are specified: recursive searches examine the current working directory, and nonrecursive searches do nothing. like, absolutely nothing. a whole lot of nothing. π
if the lzip-compressed version of a file already exists, the file is skipped unless you pass the option '--force'. and in that case, if the comparison with the existing lzip version fails, an error is returned and the original file is not deleted. π«Ά
the operation of zupdate is meant to be safe and to not cause any data loss. therefore, existing lzip-compressed files are never overwritten nor deleted. like, never ever. protect the archives at all costs π
the names of the original files must have one of these extensions, fr fr:
'.bz2','.gz','.xz','.zst', or'.Z'β these get recompressed to'.lz'β¨'.tbz','.tbz2','.tgz','.txz', or'.tzst'β these get recompressed to'.tlz'π«
π¦ exit status tea π¦
0β all the compressed files were successfully recompressed (if needed), compared, and deleted (if requested). slay β1β a non-fatal error occurred: file not found or not regular, or has invalid format, or can't be deleted. annoying but we move π2β a fatal error occurred: invalid command-line options, compressor can't be run, or comparison fails. π
π OPTIONS π
-h,--helpβ display this help and exit π«Ά-V,--versionβ output version information and exit β¨-d,--destdir=<dir>β write recompressed files into<dir>π-e,--expand-extensionsβ expand combined extensions;tgz-->tar.lzπ¦-f,--forceβ don't skip a file even if the.lzexists π₯-i,--ignore-errorsβ ignore non-fatal errors π-k,--keepβ keep (don't delete) input files π-l,--lzip-verboseβ pass one option-vto the lzip compressor π-M,--format=<list>β process only the formats in<list>π-N,--no-rcfileβ don't read runtime configuration file β-q,--quietβ suppress all messages π€«-r,--recursiveβ operate recursively on directories πΈ-R,--dereference-recursiveβ recursively follow symbolic links π§-v,--verboseβ be verbose (a 2nd-vgives more) π-x,--exclude=<pattern>β exclude files matching a shell pattern π-0..-9β set compression level [default9] π₯--bz2=<command>β set compressor and options for bzip2 format π--gz=<command>β set compressor and options for gzip format π--lz=<command>β set compressor and options for lzip format β¨--xz=<command>β set compressor and options for xz format π¦--zst=<command>β set compressor and options for zstd format πΈ
valid formats for option '-M' are 'bz2', 'gz', 'xz', and 'zst'. write that down bestie π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the devs:
- Report bugs to
zutils-bug@nongnu.org - Zutils home page:
http://www.nongnu.org/zutils/zutils.html
π COPYRIGHT π
Copyright Β© 2025 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (yes, the caps are theirs, and honestly, fair π«Ά)
π SEE ALSO π
The full documentation for zupdate is maintained as a Texinfo manual. If the info and zupdate programs are properly installed at your site, the command
info zutils
should give you access to the complete manual. iykyk β¨
and that's the whole page, bestie β zutils 1.15, dated May 2025, signing off ππ¦π
π¦ where this page comes from
- alpine 3.24: zutils-doc 1.15-r0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms