SUSE Linux: Install RPM File And Packages

Suse Linux is similar to RPM based Linux distro such as RHEL but does not comes with yum command. How do I install a rpm file or packages such as Apache or PHP under Suse Enterprise / OpenSuse Linux?

You need to use YaST (Yet another Setup Tool), in the openSUSE or Suse Enterprise Linux distribution.

Installing RPM In SLES

Simply use the following syntax to install rpm file as root user:
rpm -ivh file.rpm
yast2 -i file.rpm

Installing Binary Packages In SLES

The yum or up2date command can be used to install pakages from RHN or repos. The yast2 command can be used to install binary packages too as follows:
yast2 -i packageName
yast2 -i apache2
yast2 -i php5 php5-curl php5-fastcgi php5-gd php5-mysql php5-openssl php5-pear php5-zlib

Install Packages Using TUI or GUI Tools In SLES

Just type yast or yast2 comamnd to start yast in TUI (text based user interface over ssh session) or GUI mode:
yast2 -i
You can now select and install all supported packages. You can use the same system to remove or delete packages.

Installing RPM Files Using KDE GUI

You can install an RPM file in KDE. First, browse to where the RPM is located. Next, right-click the RPM file. From the menu, select ACTIONS, and then INSTALL WITH YAST. You need supply the root password.

Or you can just double click on the RPM file and it will allow you to install the same.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • Al B. Jul 1, 2010 @ 21:20

    you can use zypper or rug

    zypper up (update all)
    zypper in packagename (install)
    zypper se packagename (search)
    zypper sl (list repos)

  • Joseph Cordeiro Jul 10, 2011 @ 7:21


    • 🐧 nixCraft Jul 10, 2011 @ 7:39

      Open a command-line terminal (select Applications > Accessories > Terminal). Switch to the root user by typing su – and entering the root password, when prompted. Now you can type rpm command to install packages.

  • openSUSE Mar 27, 2013 @ 16:31

    One issue I just ran into was a system where yast was not installed. zypper still worked but no yast.
    In case you have to manually install yast:
    zypper install –type pattern yast2_basis
    This would get you the basic yast modules.

  • Marc Jan 25, 2015 @ 3:37

    Hello. I have OpenSUSE 13.2.x.x up and running. I am attempting to install a java runtime environment, which is a i586 .rpm file. I am running KDE as a desktop environment, and read the above header thread. There is no ‘Actions’ option. I double-click the .rpm package icon, and I get a message, “Your current backend does not support installing files.” I get this for another set of files regarding C/C++. Can’t load this either. What is happening? Rather, what did / am I doing wrong?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum