OpenWrt Forum Archive

Topic: how to install .rpm packages?

The content of this topic has been archived on 28 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi Colleagues,

Could you please advise how to install .rpm packages?

I usually use rpm -iv -r / <package>.rpm to install an RPM package on my Linux SuSE computer.

Oops, does Kamikadze release include "rpm" command?

(Last edited by vin on 17 Jul 2008, 13:43)

AFAIK, it doesn't.

mazilo wrote:

AFAIK, it doesn't.

That is correct.  OWRT uses the 'ipkg' format, a very lightweight package management system designed for embedded requirements.  Busybox (the core shell for OWRT) has a minimal RPM applet, but it's not built in by default.  Your best options (in order of preferability) are:

1.  Find the same package in .ipkg format (usually from x-wrt or openwrt trunk)
2.  Port the package to ipkg format
3.  Use a tool like rpm2tgz and convert the RPM to a tarball you can download to the device and extract.  This is almost guaranteed to break unless you know precisely what you're doing.

Another question would be, WHAT rpm package? If it contains Linux/x86 binary programs, then there's not much use in installing it on a mips-based OpenWRT system.

If it's a "noarch" package (scripts only), then I'd probably put the rpm file on a Linux machine, and use rpm with the "--root" option to unpack it to its own directory, then make a tar file of that directory and send it to the OpenWRT machine.  (I haven't looked, but I'll bet that's pretty much what rpm2tgz does...)

whbjr wrote:

Another question would be, WHAT rpm package?

??????

Do Mips RPMs also contain mipsel binaries?  If they don't, you've got a headache, ahead.

The discussion might have continued from here.