How to install package in Linux using RPM command.

Install package in Linux using RPM command.

In Linux there are two utilities are used for install package.
  • 1.   RPM – Redhat Package Manager
  • 2.   YUM- Yellowdog Updater modified

But in this toturial we will learn about RPM and how to install package using RPM command.

RPM – Redhat Package Manager

RPM is package managing system ( collection of tools to manage software packages). RPM is a powerful software management tool for installing, uninstalling, verifying, querying and updating software packages. RPM is a straight forward program to perform the above software management tasks.

Features:
  • RPM can verify software packages.
  • RPM can be served as a powerful search engine to search for software’s.
  • Components, software’s etc can be upgraded using RPM without having to reinstall them.
  • Installing, reinstalling can be done with ease using RPM.
  • During updates RPM Handels configuration Files carefully, so that the customization is not lost.


To install a package using rpm command and check whether it is installed properly or not.

In linux to install the package first we need to be in the directory of the package


[root@linuxelearn RHEL_6.0 x86_64 Disc 1]# cd Packages
[root@linuxelearn Packages]# ls  | grep -i finger
finger-0.17-39.el6.x86_64.rpm
finger-server-0.17-39.el6.x86_64.rpm
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64.rpm
[root@linuxelearn Packages]#


To install the package use the following command.
#rpm -ivh <package name>
#rpm -ivh finger-0.17-39.el6.x86_64.rpm


[root@linuxelearn Packages]# rpm -ivh finger-0.17-39.el6.x86_64.rpm
warning: finger-0.17-39.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:finger                 ########################################### [100%]
[root@linuxelearn Packages]#


For check whether it is installed or not use following command
#rpm -qa finger


[root@linuxelearn Packages]# rpm -qa finger
finger-0.17-39.el6.x86_64
[root@linuxelearn Packages]#


Check the installed package by using it command, finger is used to check user's details.
#finger <user name>
#finger Pooja


[root@linuxelearn Packages]# finger pooja
Login: pooja                                        Name:
Directory: /home/pooja                       Shell: /bin/bash
Never logged in.
No mail.
No Plan.
[root@linuxelearn Packages]#


How to remove a package or uninstall the package in linux.

In Linux for remove a package use the following synxax.
#rpm -e <package name>
#rpm -e finger
Verify whether the package uninstall or not using this command # rpm -q or #rpm -qa command.


[root@linuxelearn Packages]# rpm -e finger
[root@linuxelearn Packages]# rpm -q finger
package finger is not installed
[root@linuxelearn Packages]# rpm -qa finger
[root@linuxelearn Packages]#


How to see information about the installed package.

To see the information or details about the installed package, the syntax is
#rpm -qi <package name>
#rpm -qi vsftpd


[root@linuxelearn Packages]# rpm -qi vsftpd
Name        : vsftpd                       Relocations: (not relocatable)
Version     : 2.2.2                             Vendor: Red Hat, Inc.
Release     : 6.el6                         Build Date: Wed 26 May 2010 06:16:30 PM IST
Install Date: Wed 24 Aug 2016 07:23:00 PM IST      Build Host: x86-004.build.bos.redhat.com
Group       : System Environment/Daemons    Source RPM: vsftpd-2.2.2-6.el6.src.rpm
Size        : 338480                           License: GPLv2 with exceptions
Signature   : RSA/8, Tue 17 Aug 2010 01:49:04 AM IST, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://vsftpd.beasts.org/
Summary     : Very Secure Ftp Daemon
Description :
vsftpd is a Very Secure FTP daemon. It was written completely from
scratch.
[root@linuxelearn Packages]#


I Hope You enjoyed reading this article….


Post a Comment