Linux Package Manager Cheat Sheet Reference Chart

Linux comes in many flavors or distros, and each distro handles software installation differently from one another. Most GNU/Linux distro uses a package management system to manage software updates/instalation/removal in order to help users administer their Linux systems.

However, many of these package management system has different interface and commands, as such users from Ubuntu (or Debian based) might only be familiar with ‘apt’ or dpkg while Fedora (Red Hat based) users might only familiar with yum and rpm, which may create confusion when users from either distro were to exchange environments.

Luckily, somebody was kind enough to provide these users with Linux Package Manager Cheat Sheet which act as a reference point whenever a user had to switch to another distro which uses package management that are not familiar with them.

The package management software listed are for: apt,dpkg,yum, rpm, pkg* (slackware based) and AIX-based lsl**.

[ Source ]

How to install *.rpm in Ubuntu / Debian based operating system

There are times when you need to install an application that is only available in *.rpm package in Debian GNU/Linux or Ubuntu operating system. One of the main obstacles is that Debian / Ubuntu are using *.deb based packaging system which is incompatible with RPM.

However you can easily convert RPM package to *.deb and install it afterwards, here’s how to do it :

  • Install alien, its available in Debian, Ubuntu repository
  • Convert rpm package using command “sudo alien -k some-binary-package.rpm”
  • Install it using this command “sudo dpkg -i some-binary-package.deb

That’s all about it! Have fun installing application in your application.