|
NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | OPERATIONS | OPTIONS | EXTRACT OPTIONS | EXIT STATUS | EXAMPLES | SEE ALSO | COLOPHON |
|
|
|
RPMUNCOMPRESS(1) General Commands Manual RPMUNCOMPRESS(1)
rpmuncompress - RPM utility for compressed files and archives
rpmuncompress [options] FILE
rpmuncompress [options] [extract-options] {-x|--extract} ARCHIVE
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.
FILE
A regular file, optionally compressed.
ARCHIVE
A tar(1), zip(1), CAR or Ruby GEM file. tar archives may be
compressed.
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.
-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.
-C PATH, --path=PATH
Extract into to PATH regardless of the archive's internal
layout.
On success, 0 is returned, a nonzero failure code otherwise.
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.
rpm-common(8), rpmbuild(1), popt(3)
http://www.rpm.org/
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 man-pages@man7.org. This page was obtained from the
project's upstream Git repository
⟨https://github.com/rpm-software-management/rpm.git⟩ on
2026-05-24. (At that time, the date of the most recent commit
that was found in the repository was 2026-05-21.) 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 man-pages@man7.org
RPM 6.1.90 2026-05-24 RPMUNCOMPRESS(1)
Pages that refer to this page: rpm-macros(7)