March 19th, 2008
Recently one of the ways to distribute packages(binary and source) is by using RPM. That’s all very good and everything but what to do if the rpms aren’t supported - as on osX? It gets a bit trickier but still manageable.
First grab the perl script - rpm2cpio.pl. Its usage is pretty straightforward
rpm2cpio, perl version by orabidoo <odar@pobox.com> +sw
dumps the contents to stdout as a cpio archive
use: rpm2cpio [file.rpm] > file.cpio
Here's how to use cpio:
list of contents: cpio -t -i < /file/name
extract files: cpio -d -i < /file/name
Thankfully, cpio is natively available on osx, so that’s pretty much it all amounts to.
March 19th, 2008
There’s a handy tool for correcting data errors - Par2
The command line utility for linux is included in most packages, but alas not so on macos. There are still two ways to go - there is a port over at MacPorts but I already have Fink installed and I didn’t really want to get another clutter in the system. So I just found the ALT Linux Source, extracted the rpm and built it.
You can grab the source here Par2.tar.gz
Now just extract it and build it
tar -xvf par2.tar.gz
cd par2cmdline-0.4
chmod +x configure
./configure
make
Now you can just move par2 utility to your path directory of choice.
Just in case you don’t want to bother building it - grab the binary here - par2.bz2