nbdkit-bzip2-filter(1)

πŸ’… nbdkit-bzip2-filter(1) β€” decompress a .bz2 file πŸŽ€

okay so bestie, welcome to the manual page for nbdkit-bzip2-filter, part of the NBDKIT crew. it's a filter, it unzips your bz2 vibes on the fly, it's giving transparent decompression realness. let's get into it ✨


✨ NAME ✨

nbdkit-bzip2-filter β€” decompress a .bz2 file πŸ¦‹


🌸 SYNOPSIS 🌸

nbdkit file --filter=bzip2 FILENAME.bz2

πŸ’– DESCRIPTION πŸ’–

nbdkit-bzip2-filter is a filter for nbdkit(1) and it transparently decompresses a bzip2-compressed file. no cap. you just stack this filter on top of nbdkit-file-plugin(1) and boom, your local .bz2 file is decompressed like it was never compressed at all 🫢

heads up: the filter only allows read-only connections. that's it, that's the boundary. periodt.

now, lowkey the tea about bzip2: these files are not very good for random access in large files because seeking to a position in the bzip2 file means decompressing all the data before that point in the file. every single byte. the whole journey. 😭 if you wanna compress large disk images, a more practical method 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 πŸ‘‘

and 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. iconic behaviour, honestly 🧚


πŸŽ€ PARAMETERS πŸŽ€

there are no parameters specific to this filter. literally none. nothing to configure. just vibes πŸ’œ


🌈 ENVIRONMENT VARIABLES 🌈

  • TMPDIR β€” because the bzip2 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. slay πŸ’…

⭐ FILES ⭐

  • $filterdir/nbdkit-bzip2-filter.so β€” the plugin. that's the one, the main character πŸ”₯

use nbdkit --dump-config to find the location of $filterdir. iykyk 🌟


πŸ¦‹ VERSION πŸ¦‹

nbdkit-bzip2-filter first appeared in nbdkit 1.40. it is derived from the nbdkit-gzip-filter which first appeared in nbdkit 1.22. glow-up lineage fr fr πŸ’–


πŸ’œ SEE ALSO πŸ’œ

nbdkit-file-plugin(1), nbdkit-gzip-filter(1), nbdkit-lzip-filter(1), nbdkit-tar-filter(1), nbdkit-xz-filter(1), nbdkit(1), nbdkit-plugin(3). the whole friend group πŸ«‚


πŸ‘‘ AUTHORS πŸ‘‘

Georg Pfuetzenreuter Richard W.M. Jones


Copyright Georg Pfuetzenreuter 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:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • 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.
  • 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.


okay that's the whole page bestie, you're officially educated πŸ’… mwah 🫢

this was brought to you by nbdkit-1.48.1, dated 2026-08-29 β€” see you in the next man page, love u, bye πŸŒˆβœ¨πŸ’–

πŸ“¦ where this page comes from