Install RPM with dependencies via CLI in openSUSE

So…this is most likely something trivial to many people, but I found myself googling this the last time I tried to install Skype on my office PC. So, should you not know or have forgotten how to install and RPM with dependencies in openSUSE, here are two ways that work like magic

Method 1 – Yast

The command to run is simple – and this works with the assumption that you have yast-ncurses installed to make yast work well in the command like interface

yast –i /path/to/your-package.rpm

This will refresh your configured repositories, resolve dependencies (if possible), confirm to you what is about to be installed, and then install them with a nice cli interface so to speak.

NB: With Yast, you can choose to browse the repositories for other things to install or update.

Method 2 – Zypper

The command to run is as follows

zypper in /path/to/your-package.rpm

This will refresh your repositories, resolve your dependencies (if possible), confirm to you what is to be installed, and then install them via a simple cli interface – not as complex as yast.

Share

Leave a Reply