RPM2ARCHIVE(8)

πŸ’– rpm2archive β€” the RPM unpacker bestie πŸ’–

okay so this is the rpm2archive page from section 8 of the manual (yes, the whole thing lives in RPM2ARCHIVE(8), iykyk) and honestly? she's a baddie. let's get into it.


✨ NAME ✨

rpm2archive β€” Create tar archive from RPM Package Manager (RPM) package. πŸŽ€


🌸 SYNOPSIS 🌸

rpm2archive {-n|--nocompression} {-f|--format=pax|cpio} FILES

that's the whole vibe. FILES are the rpm files, and the flags are... optional-ish, we'll get there bestie 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” rpm2archive converts the .rpm files you pass as arguments into tar archives, and it puts them on standard out. like, that's her whole job and she eats every time πŸ’…

If you give her a '-' argument, she reads an rpm stream from standard in instead. slay. flexible queen.

And if standard out happens to be connected to a terminal, the output gets written to tar files with a .tgz suffix, and they're compressed with gzip(1) by default. no cap. 🌈

Now here's the glow-up moment: in opposite to rpm2cpio, rpm2archive also works with RPM packages containing files greater than 4GB which are not supported by cpio. so if you've got a chonky file, she's the one. main character energy fr fr πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -n, --nocompression β€” Generate uncompressed tar archive and use .tar as postfix of the file name. so no gzip, just the raw goods, and the filename gets the .tar treatment instead ✨
  • -f, --format=pax|cpio β€” Generate archive in specified format: pax (the default format) or cpio. Note that the cpio format cannot host files over 4GB in size and is only supported here for backwards compatibility. so like, it's there if you need it, but it's giving legacy energy πŸ™ˆ

🌟 EXAMPLES 🌟

here's how the girlies actually use her:

rpm2archive glint-1.0-1.i386.rpm | tar -xvz
rpm2archive glint-1.0-1.i386.rpm ; tar -xvz glint-1.0-1.i386.rpm.tgz
cat glint-1.0-1.i386.rpm | rpm2archive - | tar -tvz

pick your fighter, all three are iconic πŸ”₯


πŸ‘€ SEE ALSO πŸ‘€

go say hi, they're family 🫢


πŸŽ€ AUTHOR πŸŽ€

Florian Festi <ffesti@redhat.com> β€” thank you for your service legend ⭐


okay that's the whole page bestie, and just so you know the source/version sitch: this is RPM2ARCHIVE(8), dated 27 January 2020 πŸ’– mwah, go unpack something pretty πŸ¦‹βœ¨