rulururu

post RPM’s on OsX

March 19th, 2008

Filed under: mac — zedr0n @ 12:18 pm

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.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

ruldrurd
© quant0r.com , Designed by Stealth Settings
Entries (RSS) and Comments (RSS)