nbdkit-gzip-filter(1)

✨ nbdkit-gzip-filter πŸ’–

okay so bestie, we're in the nbdkit manual section, and this little cutie is nbdkit-gzip-filter πŸŽ€


🌸 NAME 🌸

nbdkit-gzip-filter β€” decompress a .gz file πŸ¦‹


✨ SYNOPSIS ✨

nbdkit file --filter=gzip FILENAME.gz

πŸ’… DESCRIPTION πŸ’…

nbdkit-gzip-filter is a filter for nbdkit(1) and the way it works is iconic β€” it transparently decompresses a gzip-compressed file. no cap. 🫢

You can stack it on top of nbdkit-file-plugin(1) to decompress a local .gz file, or honestly put it on top of other plugins too, like nbdkit-curl-plugin(1):

nbdkit curl --filter=gzip https://example.com/disk.gz

And with nbdkit-tar-filter(1) it can extract files from a compressed tar file, which is such a serve:

nbdkit curl --filter=tar --filter=gzip \
       https://example.com/file.tar.gz tar-entry=disk.img

This filter only allows read-only connections. it said no to writing, periodt. πŸ’€

ngl bestie, gzip files are not very good for random access in large files, because seeking to a position in the gzip file means decompressing all the data before that point in the file. like, every single byte. 😭

nbdkit-indexed-gzip-filter(1) is an alternate filter to this one which builds an index file, which can mitigate this problem. another method to compress large disk images is to use xz(1) or plzip(1). both nbdkit-xz-filter(1) and nbdkit-lzip-filter(1) support block-level decompression if the file was compressed using the right options. πŸ‘‘

To allow seeking, this filter has to keep the contents of the complete uncompressed file, which it does in a hidden temporary file under $TMPDIR. it's giving main character energy in a secret temp file. 🧚


πŸŽ€ PARAMETERS πŸŽ€

There are no parameters specific to this plugin. literally none. she's low maintenance. πŸ’–


🌈 ENVIRONMENT VARIABLES 🌈

  • TMPDIR β€” Because the gzip format is not seekable, this filter has to store the complete contents of the compressed file in a temporary file located in /var/tmp by default. You can override this location by setting the TMPDIR environment variable before starting nbdkit. πŸ“

⭐ FILES ⭐

  • $filterdir/nbdkit-gzip-filter.so β€” The plugin. ✨
    • Use nbdkit --dump-config to find the location of $filterdir. πŸ”

πŸ’œ VERSION πŸ’œ

nbdkit-gzip-filter first appeared in nbdkit 1.22. It is derived from nbdkit-gzip-plugin which first appeared in nbdkit 1.0. glow-up fr fr. 🌟


πŸ¦‹ SEE ALSO πŸ¦‹

nbdkit-bzip2-filter(1), nbdkit-curl-plugin(1), nbdkit-file-plugin(1), nbdkit-indexed-gzip-filter(1), nbdkit-lzip-filter(1), nbdkit-tar-filter(1), nbdkit-xz-filter(1), nbdkit(1), nbdkit-plugin(3).


πŸ‘‘ AUTHORS πŸ‘‘

Richard W.M. Jones πŸ’–


Copyright Red Hat


πŸŽ€ LICENSE πŸŽ€

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Red Hat nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

and that's the whole page bestie!! πŸ’… this was nbdkit-1.48.1, dated 2026-08-29, from the nbdkit-gzip-filter(1) page. mwah, go decompress something gorgeous πŸ«ΆπŸŒˆπŸ’–

πŸ“¦ where this page comes from