Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to install .rpm package in Kali linux.

But shows command not found error.

i tried using with sudo but didn't help.

Does kali supports .rpm files? How can i install .rpm on Kali linux?

share|improve this question
    
Which rpm package do you nee to install? Just curious! –  Sanket Parmar Jul 4 at 4:43

1 Answer 1

up vote 1 down vote accepted

RPM packages are precompiled and built for Red Hat Based Linux Distribution and can be installed only using yum, Zypper and RPM based package managers.
Since Kali Linux is based on Debian you can not install RPM packages directly using apt or dpkg package managers.

However, you can try a utility called Alien which can convert one package format into other but this doesn't mean every RPM will work since packages link to another packages for dependencies and this can cause troubles.

To install Alien and necessary package, run this command

$ sudo apt-get install alien dpkg-dev debhelper build-essential

To convert a package from RPM to debian format, use this command:

$ sudo alien packagename.rpm

To install the package:

$ sudo dpkg -i packagename.deb  
share|improve this answer
    
so, those that mean i can install yum on kali and install .rpm file? –  mhrzn Jul 4 at 4:06
    
No, I wouldn't recommend it . You probably could compile yum from sources but you wouldn't have any Debian compatible repositories to handle. Just try alien and install rpm you want to install or find its equivalent deb package. –  abhishekkannojia Jul 4 at 4:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.