Converting RPM files to tarballs

I don't use RPM files on my Gentoo system, so when I want to install a certain RPM file, I first extract it to a temporary directory, then re-tar it and bzip2 it. Here's an example:

rpm2cpio file.rpm | cpio -idv
tar cvf file.tar new_directory_created_by_rpm2cpio
bzip2 file.tar

Click here to return to index