Published January 15, 2018 by

Install .rpm & .deb file using Command Line

We all know in Linux system for installing .deb and.RPM file we use Software Center or Application Installer in a graphical user interface. But today I want to show you how to install .deb and.RPM file installs using the terminal.

For installing .deb packages on the Debian based system(Ubuntu, Debian, LinuxMint) we use dpkg command.

# sudo dpkg -i package.deb


Installing Package

For example, To install a Skype from a Debian package file (skypeforlinux-64.deb). So use -i command line switch.

# sudo dpkg -i skypeforlinux-64.deb

Uninstalling Package

If we need to uninstall any package. So use -r command line switch with the package name.

# sudo dpkg -r skypeforlinux-64.deb




For installing .rpm packages on the Redhat based system(CentOS, RedHat, Fedora) we use rpm command.

rpm -i package-name.rpm


Installing Package

For example, To install a Skype from an RPM package file (skypeforlinux-64.rpm). So use -i command line switch.

# rpm -i skypeforlinux-64.rpm

You can also use YUM or DNF package manager to install downloaded rpm file.

# dnf localinstall skypeforlinux-64.rpm                   ## For Fedora
# yum localinstall skypeforlinux-64.rpm                 ## For CentOS, RedHat  

Uninstalling Package

If we need to uninstall any package. So use -e command line switch with the package name.

# rpm -e skypeforlinux-64.rpm