Install/Uninstall package software on Linux

rpm dpkg yum apt-get


I. RPM (Redhat Package Manager)

  • Use RPM to add a new software or applications is an easy process.
  • RPM is so successful as the primary package manager by Linux distributions, including SUSE and Mandrake.
  • As an Linux Administrator, we have to install, upgrade, remove and maintain many version of RPM packages.
  • One of advantage of RPM is that you cn verify the integrity of packages and files.
  • Query a package which installed on your Linux box.
[root@localhost ~]# rpm -q kernel
[root@localhost ~]#
  • Listing the files in an RPM package
[root@localhost ~]# rpm -ql openssh
[root@localhost ~]#
  • RPMs and CPUs : when we download rpm package, End of the name in the file will show you which package for your Linux system.
    • noarch.rpm : don’t denpend on CPU, it can install on any computers.
    • i586.rpm : Intel 32-bit systems
    • i686.rpm : Intel 32-bit systems and AMD 32 bit CPUs.
    • ia64.rpm : for Intel 64 bit systems.
    • sparc.rpm : Sun Microsystem Sparc CPU.

1. Install software package on Centos/Redhat RHEL/Fedora


2. Uninstall software package on Centos/Redhat RHEL/Fedora


3. Upgrade software package on Centos/Redhat RHEL/Fedora by RPM


II. DPKG (Package Manager for Debian)

  •  We can install, remove, and build packages, but unlike other package management system’s it can not automatically download and install packages and their dependencies.
  • The primary and more user-friendly front-end for dpkg is aptitude.
  • List all packages installed on Ubuntu/Debian System
dpkg -l
  • List all files installed by dpkg package
root@ubuntu:~# dpkg -L zip
  • Command dpkg -i packagename.deb for installing Debian package.
  • Command dpkg -r packagename for remove Debian package.


1. Install software package on Ubuntu/Debian


2. Uninstall software package on Ubuntu/Debian


Thanks for using

Leave a Reply

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

Go to top