Install and uninstall linux packages

Install

Install with rpm (Read Hat)

RPM (RPM Package Manager) is a popular package manager for installing software on Unix-like systems, particularly Red Hat Linux. The following is an example to install a package with file suffix ".rpm":

sudo rpm -i /path/to/package/name.rpm

If you already have the earlier version of the software, enter the following command to upgrade

rpm -U aSoftware.rpm

Install with apt-get and apt (Ubuntu)

Method 1: Install .deb files with dpkg and apt-get:

  1. sudo dpkg -i /path/to/deb/file
  2. sudo apt-get install -f

Method 2: Install .deb files with apt:

sudo apt install /path/to/package/name.deb

Note: the reason to use apt-get after dpkg: see [this].(https://unix.stackexchange.com/questions/159094/how-to-install-a-deb-file-by-dpkg-i-or-by-apt)

Uninstall

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.