Skip to content

1.0.5

Choose a tag to compare

@johnandersen777 johnandersen777 released this 19 Nov 23:13

Extract rpm files from the command line

You can use rpmfile via it's module invocation or via rpmfile command if
your PATH environment variable is configured correctly. Pass --help for all
options.

List RPM contents

curl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | python -m rpmfile -l -
./path/to/file

Extract files

curl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | rpmfile -x -
./path/to/file

Extract files to directory

curl -sfL 'https://example.com/some.rpm.gz' | gzip -d - | rpmfile -xC /tmp -
/tmp/path/to/file