How to Install/Uninstall RPM Packages and source packages

Hello guys,

In this post I already showed you how to install/Uninstall DEB packages.

Now I will show you how to install/uninstall RPM packages, and how to install sources RPMs

Distributions such as Redhat, Fedora, and CentOS using packages with .rpm extension

1. Installing RPM packages

” rpm -uvh ” Will use this command to install packages

  • what’s uvh means ?

u : used for updating RPM packages to last version

v : show verbose messages while running command lines

h : Gives you hash “#” characters during installation process

Terminal :

###############################################################

Access the directory for downloaded package for example : cd download

Your@username-laptop:~$ rpm -Uvh package name.rpm
..
.
Installation process successfully

###############################################################

2. Installing sources RPMs

Some packages you want to install required a source files to work with kernel  version. Here is the command for installing source packages

Require root privilege

Your@username-laptop:~$ rpmbuild –rebuild package name ending with “.src.rpm” extension

3. Uninstalling RPM packages

Terminal :

###############################################################

Your@username-laptop:~$ rpm -e package name

###############################################################

  • you will need root privilege to remove this package
  • make sure you type package correctly with version if available as show on -qa command listing

That’s it for now. :)

How to Install/Uninstall DEB Packages

Hello Guys,

Easiest way to install software on Ubuntu is using DEB Packages, cause Ubuntu distribution based on Debian distribution, unlike Fedora, Redhat, and CentOS using RPM packages. ”  Will cover how to install/Uninstall RPM packages on Next Post”

so, will begin with

1. Installing DEB packages

Ubuntu make it really easy to install softwares on your distribution by using ” Ubuntu software center ” Or using ” Synaptic Package Manager ” , but sometimes you can’t find these packages you want listed on “software center or synaptic” but you already have a DEB packages and you want to install it using terminal.

For example I Downloaded application called ” Skype ”

http://download.skype.com/linux/skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb   ” DEB package name on Red color “

” Download location : Home/Your Username/Downloads “

Go to Terminal
Your@Username-laptop:~/Downloads$ dpkg --install skype-ubuntu-intrepid_2.1.0.81-1_amd64.deb
sudo dpkg-i "package name"
” make sure you write package name as you see it on directory list, or copy and paste it “

Something will show up that the process complete successfully
2. Uninstalling DEB Packages
Go to Terminal
Your@Username-laptop:~$ Sudo dpkg --remove "package name"
sudo dpkg-r "package name"
without quote ” “
password:     Type your password

Something will show up that the process complete successfully and the package has been removed.

That’s it for now, and will cover Installing/uninstalling RPM packages on next How To’s …?