rpmuncompress(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | OPERATIONS | OPTIONS | EXTRACT OPTIONS | EXIT STATUS | EXAMPLES | SEE ALSO | COLOPHON

RPMUNCOMPRESS(1)         General Commands Manual         RPMUNCOMPRESS(1)

NAME         top

       rpmuncompress - RPM utility for compressed files and archives

SYNOPSIS         top

       rpmuncompress [options] FILE

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

DESCRIPTION         top

       rpmuncompress is a utility for transparently outputting compressed
       and uncompressed files, and extracting archives.

       It's normally invoked internally by rpmbuild(1) to handle %setup
       and %patch related tasks in spec files, but can be useful manually
       invoked as well. The installation directory of rpmuncompress can
       be determined with rpm -E "%{_rpmconfigdir}".

ARGUMENTS         top

       FILE
           A regular file, optionally compressed.

       ARCHIVE
           A tar(1), zip(1) or Ruby GEM archive. tar archives may be
           compressed.

OPERATIONS         top

       By default, rpmuncompress outputs FILE to standard output similar
       to cat(1), but transparently decompressing many popular
       compression formats, similar to zcat(1).

       -x, --extract
           Extract the ARCHIVE passed as argument into the current
           directory, transparently uncompressing tar(1) archives if
           needed.

OPTIONS         top

       -n, --dry-run
           Output the shell command that would be executed without this
           option.

       See rpm-common(8) for options common to all rpm executables.

EXTRACT OPTIONS         top

       -C PATH, --path=PATH
           Extract into to PATH regardless of the archive's internal
           layout.

EXIT STATUS         top

       On success, 0 is returned, a nonzero failure code otherwise.

EXAMPLES         top

       rpmuncompress /tmp/3911.patch.gz | patch -p1
           Uncompress and output /tmp/3911.patch.gz, similar to zcat(1),
           and pipe to patch(1).

       rpmuncompress -x myproject.zip
           Extract myproject.zip archive into the current directory.

       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.

SEE ALSO         top

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

       http://www.rpm.org/ 

COLOPHON         top

       This page is part of the rpm (RPM Package Manager) project.
       Information about the project can be found at 
       ⟨https://github.com/rpm-software-management/rpm⟩.  It is not known
       how to report bugs for this man page; if you know, please send a
       mail to [email protected].  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/rpm-software-management/rpm.git⟩ on
       2026-01-16.  (At that time, the date of the most recent commit
       that was found in the repository was 2026-01-15.)  If you discover
       any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a
       mail to [email protected]

RPM 6.0.90                      2026-01-16               RPMUNCOMPRESS(1)