RPMUNCOMPRESS(1)

πŸ’– RPMUNCOMPRESS πŸ’–

okay bestie, you know rpmuncompress? yeah, that's the manual page. it's rpmuncompress, the RPM utility for compressed files and archives. let's get into it, i promise it's not that deep. ✨


🌸 SYNOPSIS 🌸

rpmuncompress [options] FILE

rpmuncompress [options] [extract-options] {-x|--extract} ARCHIVE

πŸ¦‹ DESCRIPTION πŸ¦‹

so rpmuncompress is a utility that transparently outputs compressed and uncompressed files, and also extracts archives. like, it does both. versatile queen. πŸ‘‘

it's normally invoked internally by rpmbuild(1) to handle %setup and %patch related tasks in spec files β€” but you can totally call it manually too, and honestly? slay, go for it.


πŸŽ€ ARGUMENTS πŸŽ€

  • FILE β€” a regular file, optionally compressed. that's it, that's the vibe.
  • ARCHIVE β€” a tar(1), zip(1), CAR or Ruby GEM file. and if it's a tar archive? it may be compressed. we handle it. πŸ’…

✨ OPERATIONS ✨

by default, rpmuncompress outputs FILE to standard output β€” similar to cat(1), except it transparently decompresses a bunch of popular compression formats, similar to zcat(1). so it's giving cat but smarter. main character energy fr.

  • -x, --extract β€” extract the ARCHIVE passed as argument into the current directory, transparently uncompressing tar(1) archives if needed. no cap, it just handles it.

πŸ’… OPTIONS πŸ’…

  • -n, --dry-run β€” output the shell command that would be executed without this option. so you can see the plan before you commit. lowkey iconic.

also! check out rpm-common(8) for options common to all rpm executables. the more u know iykyk. 🌈


πŸ“ EXTRACT OPTIONS πŸ“

  • -C PATH, --path=PATH β€” extract into PATH regardless of the archive's internal layout. we don't care what it thinks its structure is, bestie, we're going where you said. periodt.

🌟 EXIT STATUS 🌟

on success, 0 is returned. a nonzero failure code otherwise. you either ate or you didn't. 😭


🧚 EXAMPLES 🧚

rpmuncompress /tmp/3911.patch.gz | patch -p1

uncompress and output /tmp/3911.patch.gz, similar to zcat(1), and pipe it to patch(1). chef's kiss. πŸ”₯

rpmuncompress -x myproject.zip

extract myproject.zip archive into the current directory. simple. clean. obsessed.

rpmuncompress -x -C myproject myproject-1.0.7rc1.tar.gz

uncompress and extract myproject-1.0.7rc1.tar.gz archive into myproject directory, regardless of it's internal structure. we're putting it where we want it. πŸ’–


🫢 SEE ALSO 🫢

rpm-common(8), rpmbuild(1), popt(3)

http://www.rpm.org/

okay that's the whole page bestie, go forth and uncompress responsibly πŸ’œ

and that's a wrap, babes 🌸 this was RPM 6.1.0, dated 2026-08-20 β€” written by the General Commands Manual girlies, delivered to you with love. mwah. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from