rpmuncompress1
Rpm utility for compressed files and archives
Usage
rpmuncompress [options]
FILE
rpmuncompress [options]
[extract-options]
{-x | --extract}
ARCHIVE
Overview
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
FILE
A regular file, optionally compressed.
ARCHIVE
Operations
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
-
-n, --dry-run -
Output the shell command that would be executed without this option.
Options
-
-C PATH, --path=PATH -
Extract into to PATH regardless of the archive's internal layout.
-
-v, --verbose -
Provide verbose extraction output.
Exit status
On success, 0 is returned, a nonzero failure code otherwise.
Examples
rpmuncompress /tmp/3911.patch.gz | patch -p1
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.