SlideShare una empresa de Scribd logo
1 de 25
RPM (Red Hat Package Manager)
S. KALAIVANI [RHCE]
LINUX TRAINER
BUTP- TRICHY
TAMIL NADU
INDIA
6/10/2014 1RPM
RPM
• RPM (Red Hat Package Manager) is an default
open source and most popular package
management utility for Red Hat based systems
like (RHEL, CentOS and Fedora).
• The tool allows system administrators and users
to install, update, uninstall, query, verify and
manage system software packages
in Unix/Linux operating systems.
• The RPM formerly known as .rpm file
6/10/2014 2RPM
Some Facts about RPM
• RPM is free and released under GPL (General
Public License).
• RPM keeps the information of all the installed
packages under /var/lib/rpm database.
• RPM is the only way to install packages under
Linux systems, if you’ve installed packages using
source code, then rpm won’t manage it.
• RPM deals with .rpm files, which contains the
actual information about the packages such
as: what it is, from where it
comes, dependencies info, version info etc.
6/10/2014 3RPM
There are five basic modes for RPM
command
• Install : It is used to install any RPM package.
• Remove : It is used to erase, remove or un-
install any RPM package.
• Upgrade : It is used to update the existing
RPM package.
• Verify : It is used to query about different RPM
packages.
• Query : It is used for the verification of any
RPM package.
6/10/2014 4RPM
Where to find RPM packages
• http://rpmfind.net
• http://www.redhat.com
• http://freshrpms.net/
• http://rpm.pbone.net/
6/10/2014 5RPM
How to Check an RPM Signature
Package
• Always check the PGP signature of packages
before installing them on your Linux systems
and make sure its integrity and origin is OK.
[root@localhost]# rpm --checksig pidgin-2.7.9-
5.el6.2.i686.rpm
pidgin-2.7.9-5.el6.2.i686.rpm: rsa sha1 (md5) pgp
md5 OK
6/10/2014 6RPM
How to Install an RPM Package
• For installing an rpm software package, use the
following command with -i option.
[root@localhost]# rpm -ivh pidgin-2.7.9-5.el6.2.
i686.rpm
Preparing...
########################################### [100%]
1:pidgin
########################################### [100%]
RPM command and options
• -i : install a package
• -v : verbose for a nicer display
• -h: print hash marks as the package archive is unpacked.
6/10/2014 7RPM
How to check dependencies of RPM
Package before Installing
• Let’s say you would like to do a dependency
check before installing or upgrading a package.
[root@localhost]# rpm -qpR BitTorrent-5.2.2-1-
Python2.4.noarch.rpm
/usr/bin/python2.4
python >= 2.3
python(abi) = 2.4
python-crypto >= 2.0
Python-psyco
RPM command and options
• -q : Query a package
• -p : List capabilities this package provides.
• -R: List capabilities on which this package depends..
6/10/2014 8RPM
How to Install a RPM Package Without
Dependencies
• To ignore those dependencies by using the
option –nodeps (no dependencies check)
before installing the package.
[root@localhost]# rpm -ivh --nodeps BitTorrent-
5.2.2-1-Python2.4.noarch.rpm
Preparing...
###########################################
[100%] 1:BitTorrent
###########################################
[100%]
6/10/2014 9RPM
How to check an Installed RPM
Package
• Using -q option with package name, will show
whether an rpm installed or not.
[root@localhost]# rpm -q BitTorrent BitTorrent-
5.2.2-1.noarch
6/10/2014 10RPM
How to List all files of an installed RPM
package
• To view all the files of an installed rpm
packages, use the -ql (query list) with rpm
command.
[root@tecmint]# rpm -ql BitTorrent
/usr/bin/bittorrent
/usr/bin/bittorrent-console
/usr/bin/bittorrent-curses
/usr/bin/bittorrent-tracker
/usr/bin/changetracker-console
6/10/2014 11RPM
How to List Recently Installed RPM
Packages
• To list all the recently installed rpm packages.
[root@tecmint]# rpm -qa --last
BitTorrent-5.2.2-1.noarch Tue 04 Dec 2012 05:14:06 PM BDT
pidgin-2.7.9-5.el6.2.i686 Tue 04 Dec 2012 05:13:51 PM BDT
cyrus-sasl-devel-2.1.23-13.el6_3.1.i686 Tue 04 Dec 2012 04:43:06
PM BDT
cyrus-sasl-2.1.23-13.el6_3.1.i686 Tue 04 Dec 2012 04:43:05 PM BDT
6/10/2014 12RPM
How to List All Installed RPM Packages
• To print the all the names of installed
packages on your Linux system.
[root@tecmint]# rpm -qa
initscripts-9.03.31-2.el6.centos.i686
polkit-desktop-policy-0.96-2.el6_0.1.noarch
thunderbird-17.0-1.el6.remi.i686
6/10/2014 13RPM
How to Upgrade a RPM Package
• If we want to upgrade any RPM package “–U”
(upgrade) option will be used.
[root@tecmint]# rpm -Uvh nx-3.5.0-
2.el6.centos.i686.rpm
Preparing...
###########################################
[100%] 1:nx
###########################################
[100%]
6/10/2014 14RPM
How to Remove a RPM Package
• To un-install an RPM package, for example we use the package
name nx, not the original package name
nx-3.5.0-2.el6.centos.i686.rpm.
[root@localhost]# rpm -evv nx
6/10/2014 15RPM
How to Remove an RPM Package
Without Dependencies
• The –nodeps (Do not check dependencies)
option forcefully remove the rpm package
from the system.
[root@localhost]# rpm -ev --nodeps vsftpd
6/10/2014 16RPM
How to Query a file that belongs which
RPM Package
• To find out which package belongs to these
files. For example, the following command
with -qf (query file)
[root@localhost]# rpm -qf /usr/bin/htpasswd
httpd-tools-2.2.15-15.el6.centos.1.i686
6/10/2014 17RPM
How to Query a Information of
Installed RPM Package
• To know the information about the package.
[root@localhost]# rpm -qi vsftpd
Name : vsftpd
Relocations: (not relocatable)
Version : 2.2.2
Vendor: CentOS
Release : 11.el6 Build Date: Fri 22 Jun 2012
01:54:24 PM BDT Install Date: Mon 17 Sep 2012
07:55:28 PM BDT Build Host:
c6b8.bsys.dev.centos.org
Group : System Environment/Daemons Source RPM:
vsftpd-2.2.2-11.el6.src.rpm Size : 351932 License:
GPLv2 with exceptions Signature : RSA/SHA1, Mon 25
Jun 2012 04:07:34 AM BDT, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem
6/10/2014 18RPM
How to Query documentation of
Installed RPM Package
• To get the list of available documentation of
an installed package, use the following
command
[root@localhost]# rpm -qdf /usr/bin/vmstat
/usr/share/doc/procps-3.2.8/BUGS
/usr/share/doc/procps-3.2.8/COPYING
/usr/share/doc/procps-3.2.8/COPYING.LIB
6/10/2014 19RPM
How to Verify a RPM Package
• Verifying a package compares information of
installed files of the package against the rpm
database. The -Vp (verify package) is used to
verify a package.
[root@localhost downloads]# rpm -Vp sqlbuddy-1.3.3-
1.noarch.rpm
S.5....T. c /etc/httpd/conf.d/sqlbuddy.conf
6/10/2014 20RPM
How to Verify all RPM Packages
• Type the following command to verify all the
installed rpm packages.
[root@localhost]# rpm -Va S.5....T. c
/etc/rc.d/rc.local .......T. c
/etc/dnsmasq.conf .......T.
/etc/ld.so.conf.d/kernel-2.6.32-
279.5.2.el6.i686.conf S.5....T. c
/etc/yum.conf S.5....T. c
/etc/yum.repos.d/epel.repo
6/10/2014 21RPM
How to Import an RPM GPG key
• To verify RHEL/CentOS/Fedora packages, you
must import the GPG key. To do so, execute
the following command. It will import CentOS
6 GPG key.
[root@localhost]# rpm --import /etc/pki/rpm-gpg/RPM-
GPG-KEY-CentOS-6
6/10/2014 22RPM
How to List all Imported RPM GPG keys
• To print all the imported GPG keys in your
system, use the following command.
[root@localhost]# rpm -qa gpg-pubkey*
gpg-pubkey-0608b895-4bd22942
gpg-pubkey-7fac5991-4615767f
gpg-pubkey-0f2672c8-4cd950ee
6/10/2014 23RPM
How To rebuild Corrupted RPM
Database
• Sometimes rpm database gets corrupted and
stops all the functionality of rpm and other
applications on the system. So, at the time we
need to rebuild the rpm database and restore
it with the help of following command.
[root@localhost]# cd /var/lib
[root@localhost]# rm __db*
[root@localhost]# rpm --rebuilddb
[root@localhost]# rpmdb_verify Packages
6/10/2014 24RPM
Thank You
6/10/2014 RPM 25

Más contenido relacionado

La actualidad más candente

Kali Linux-Operating System Presentation.pptx
Kali Linux-Operating System Presentation.pptxKali Linux-Operating System Presentation.pptx
Kali Linux-Operating System Presentation.pptxSumaiyaSinja1
 
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...Stefano Stabellini
 
Xen on ARM for embedded and IoT: from secure containers to dom0less systems
Xen on ARM for embedded and IoT: from secure containers to dom0less systemsXen on ARM for embedded and IoT: from secure containers to dom0less systems
Xen on ARM for embedded and IoT: from secure containers to dom0less systemsStefano Stabellini
 
Xen and the art of embedded virtualization (ELC 2017)
Xen and the art of embedded virtualization (ELC 2017)Xen and the art of embedded virtualization (ELC 2017)
Xen and the art of embedded virtualization (ELC 2017)Stefano Stabellini
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file systemTaaanu01
 
Alphorm.com Formation Nouveautés Windows Server 2016
Alphorm.com Formation Nouveautés Windows Server 2016Alphorm.com Formation Nouveautés Windows Server 2016
Alphorm.com Formation Nouveautés Windows Server 2016Alphorm
 
Bash shell
Bash shellBash shell
Bash shellxylas121
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingTushar B Kute
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemHungWei Chiu
 
Openstack Instance Resize
Openstack Instance ResizeOpenstack Instance Resize
Openstack Instance Resizeymtech
 
Launch the First Process in Linux System
Launch the First Process in Linux SystemLaunch the First Process in Linux System
Launch the First Process in Linux SystemJian-Hong Pan
 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1NAILBITER
 
Course 102: Lecture 27: FileSystems in Linux (Part 2)
Course 102: Lecture 27: FileSystems in Linux (Part 2)Course 102: Lecture 27: FileSystems in Linux (Part 2)
Course 102: Lecture 27: FileSystems in Linux (Part 2)Ahmed El-Arabawy
 
The Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad WebThe Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad Webpanagenda
 
Presentation aix performance updates & issues
Presentation   aix performance updates & issuesPresentation   aix performance updates & issues
Presentation aix performance updates & issuesxKinAnx
 

La actualidad más candente (20)

Kali Linux-Operating System Presentation.pptx
Kali Linux-Operating System Presentation.pptxKali Linux-Operating System Presentation.pptx
Kali Linux-Operating System Presentation.pptx
 
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
Static Partitioning with Xen, LinuxRT, and Zephyr: A Concrete End-to-end Exam...
 
Xen on ARM for embedded and IoT: from secure containers to dom0less systems
Xen on ARM for embedded and IoT: from secure containers to dom0less systemsXen on ARM for embedded and IoT: from secure containers to dom0less systems
Xen on ARM for embedded and IoT: from secure containers to dom0less systems
 
Xen and the art of embedded virtualization (ELC 2017)
Xen and the art of embedded virtualization (ELC 2017)Xen and the art of embedded virtualization (ELC 2017)
Xen and the art of embedded virtualization (ELC 2017)
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Alphorm.com Formation Nouveautés Windows Server 2016
Alphorm.com Formation Nouveautés Windows Server 2016Alphorm.com Formation Nouveautés Windows Server 2016
Alphorm.com Formation Nouveautés Windows Server 2016
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
Bash shell
Bash shellBash shell
Bash shell
 
Nfs
NfsNfs
Nfs
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module Programming
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
 
Openstack Instance Resize
Openstack Instance ResizeOpenstack Instance Resize
Openstack Instance Resize
 
Launch the First Process in Linux System
Launch the First Process in Linux SystemLaunch the First Process in Linux System
Launch the First Process in Linux System
 
Linux advanced concepts - Part 1
Linux advanced concepts - Part 1Linux advanced concepts - Part 1
Linux advanced concepts - Part 1
 
Course 102: Lecture 27: FileSystems in Linux (Part 2)
Course 102: Lecture 27: FileSystems in Linux (Part 2)Course 102: Lecture 27: FileSystems in Linux (Part 2)
Course 102: Lecture 27: FileSystems in Linux (Part 2)
 
The Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad WebThe Ultimate Administrator’s Guide to HCL Nomad Web
The Ultimate Administrator’s Guide to HCL Nomad Web
 
Presentation aix performance updates & issues
Presentation   aix performance updates & issuesPresentation   aix performance updates & issues
Presentation aix performance updates & issues
 
Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
 
Linux sunum
Linux sunumLinux sunum
Linux sunum
 
Aix overview
Aix overviewAix overview
Aix overview
 

Similar a RPM (Red Hat Package Manager)

101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package managementAcácio Oliveira
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package managementAcácio Oliveira
 
2.5 use rpm and yum package management
2.5 use rpm and yum package management2.5 use rpm and yum package management
2.5 use rpm and yum package managementAcácio Oliveira
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMAlexander Shopov
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package managementAcácio Oliveira
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linuxnejadmand
 
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and DatabaseRAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and DatabaseNikhil Kumar
 
Ganglia monitoring
Ganglia monitoringGanglia monitoring
Ganglia monitoringChen Robert
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting Aleksey Korzun
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2Trinh Tuan
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTJoshua Thijssen
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Santosh Kangane
 

Similar a RPM (Red Hat Package Manager) (20)

Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
2.5 use rpm and yum package management
2.5 use rpm and yum package management2.5 use rpm and yum package management
2.5 use rpm and yum package management
 
Bundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPMBundling Packages and Deploying Applications with RPM
Bundling Packages and Deploying Applications with RPM
 
101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management101 2.5 use rpm and yum package management
101 2.5 use rpm and yum package management
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Linux16 RPM
Linux16 RPMLinux16 RPM
Linux16 RPM
 
OTRS
OTRSOTRS
OTRS
 
RPM Packaging 101 (Old)
RPM Packaging 101 (Old)RPM Packaging 101 (Old)
RPM Packaging 101 (Old)
 
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and DatabaseRAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and Database
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
 
Ganglia monitoring
Ganglia monitoringGanglia monitoring
Ganglia monitoring
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
 
Snort296x centos6x 2
Snort296x centos6x 2Snort296x centos6x 2
Snort296x centos6x 2
 
The Domino 10 RHEL 7 Primer
The Domino 10 RHEL 7 PrimerThe Domino 10 RHEL 7 Primer
The Domino 10 RHEL 7 Primer
 
Slim Server Practical
Slim Server PracticalSlim Server Practical
Slim Server Practical
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
 
Linux16 RPM
Linux16 RPMLinux16 RPM
Linux16 RPM
 

Último

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 

Último (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 

RPM (Red Hat Package Manager)

  • 1. RPM (Red Hat Package Manager) S. KALAIVANI [RHCE] LINUX TRAINER BUTP- TRICHY TAMIL NADU INDIA 6/10/2014 1RPM
  • 2. RPM • RPM (Red Hat Package Manager) is an default open source and most popular package management utility for Red Hat based systems like (RHEL, CentOS and Fedora). • The tool allows system administrators and users to install, update, uninstall, query, verify and manage system software packages in Unix/Linux operating systems. • The RPM formerly known as .rpm file 6/10/2014 2RPM
  • 3. Some Facts about RPM • RPM is free and released under GPL (General Public License). • RPM keeps the information of all the installed packages under /var/lib/rpm database. • RPM is the only way to install packages under Linux systems, if you’ve installed packages using source code, then rpm won’t manage it. • RPM deals with .rpm files, which contains the actual information about the packages such as: what it is, from where it comes, dependencies info, version info etc. 6/10/2014 3RPM
  • 4. There are five basic modes for RPM command • Install : It is used to install any RPM package. • Remove : It is used to erase, remove or un- install any RPM package. • Upgrade : It is used to update the existing RPM package. • Verify : It is used to query about different RPM packages. • Query : It is used for the verification of any RPM package. 6/10/2014 4RPM
  • 5. Where to find RPM packages • http://rpmfind.net • http://www.redhat.com • http://freshrpms.net/ • http://rpm.pbone.net/ 6/10/2014 5RPM
  • 6. How to Check an RPM Signature Package • Always check the PGP signature of packages before installing them on your Linux systems and make sure its integrity and origin is OK. [root@localhost]# rpm --checksig pidgin-2.7.9- 5.el6.2.i686.rpm pidgin-2.7.9-5.el6.2.i686.rpm: rsa sha1 (md5) pgp md5 OK 6/10/2014 6RPM
  • 7. How to Install an RPM Package • For installing an rpm software package, use the following command with -i option. [root@localhost]# rpm -ivh pidgin-2.7.9-5.el6.2. i686.rpm Preparing... ########################################### [100%] 1:pidgin ########################################### [100%] RPM command and options • -i : install a package • -v : verbose for a nicer display • -h: print hash marks as the package archive is unpacked. 6/10/2014 7RPM
  • 8. How to check dependencies of RPM Package before Installing • Let’s say you would like to do a dependency check before installing or upgrading a package. [root@localhost]# rpm -qpR BitTorrent-5.2.2-1- Python2.4.noarch.rpm /usr/bin/python2.4 python >= 2.3 python(abi) = 2.4 python-crypto >= 2.0 Python-psyco RPM command and options • -q : Query a package • -p : List capabilities this package provides. • -R: List capabilities on which this package depends.. 6/10/2014 8RPM
  • 9. How to Install a RPM Package Without Dependencies • To ignore those dependencies by using the option –nodeps (no dependencies check) before installing the package. [root@localhost]# rpm -ivh --nodeps BitTorrent- 5.2.2-1-Python2.4.noarch.rpm Preparing... ########################################### [100%] 1:BitTorrent ########################################### [100%] 6/10/2014 9RPM
  • 10. How to check an Installed RPM Package • Using -q option with package name, will show whether an rpm installed or not. [root@localhost]# rpm -q BitTorrent BitTorrent- 5.2.2-1.noarch 6/10/2014 10RPM
  • 11. How to List all files of an installed RPM package • To view all the files of an installed rpm packages, use the -ql (query list) with rpm command. [root@tecmint]# rpm -ql BitTorrent /usr/bin/bittorrent /usr/bin/bittorrent-console /usr/bin/bittorrent-curses /usr/bin/bittorrent-tracker /usr/bin/changetracker-console 6/10/2014 11RPM
  • 12. How to List Recently Installed RPM Packages • To list all the recently installed rpm packages. [root@tecmint]# rpm -qa --last BitTorrent-5.2.2-1.noarch Tue 04 Dec 2012 05:14:06 PM BDT pidgin-2.7.9-5.el6.2.i686 Tue 04 Dec 2012 05:13:51 PM BDT cyrus-sasl-devel-2.1.23-13.el6_3.1.i686 Tue 04 Dec 2012 04:43:06 PM BDT cyrus-sasl-2.1.23-13.el6_3.1.i686 Tue 04 Dec 2012 04:43:05 PM BDT 6/10/2014 12RPM
  • 13. How to List All Installed RPM Packages • To print the all the names of installed packages on your Linux system. [root@tecmint]# rpm -qa initscripts-9.03.31-2.el6.centos.i686 polkit-desktop-policy-0.96-2.el6_0.1.noarch thunderbird-17.0-1.el6.remi.i686 6/10/2014 13RPM
  • 14. How to Upgrade a RPM Package • If we want to upgrade any RPM package “–U” (upgrade) option will be used. [root@tecmint]# rpm -Uvh nx-3.5.0- 2.el6.centos.i686.rpm Preparing... ########################################### [100%] 1:nx ########################################### [100%] 6/10/2014 14RPM
  • 15. How to Remove a RPM Package • To un-install an RPM package, for example we use the package name nx, not the original package name nx-3.5.0-2.el6.centos.i686.rpm. [root@localhost]# rpm -evv nx 6/10/2014 15RPM
  • 16. How to Remove an RPM Package Without Dependencies • The –nodeps (Do not check dependencies) option forcefully remove the rpm package from the system. [root@localhost]# rpm -ev --nodeps vsftpd 6/10/2014 16RPM
  • 17. How to Query a file that belongs which RPM Package • To find out which package belongs to these files. For example, the following command with -qf (query file) [root@localhost]# rpm -qf /usr/bin/htpasswd httpd-tools-2.2.15-15.el6.centos.1.i686 6/10/2014 17RPM
  • 18. How to Query a Information of Installed RPM Package • To know the information about the package. [root@localhost]# rpm -qi vsftpd Name : vsftpd Relocations: (not relocatable) Version : 2.2.2 Vendor: CentOS Release : 11.el6 Build Date: Fri 22 Jun 2012 01:54:24 PM BDT Install Date: Mon 17 Sep 2012 07:55:28 PM BDT Build Host: c6b8.bsys.dev.centos.org Group : System Environment/Daemons Source RPM: vsftpd-2.2.2-11.el6.src.rpm Size : 351932 License: GPLv2 with exceptions Signature : RSA/SHA1, Mon 25 Jun 2012 04:07:34 AM BDT, Key ID 0946fca2c105b9de Packager : CentOS BuildSystem 6/10/2014 18RPM
  • 19. How to Query documentation of Installed RPM Package • To get the list of available documentation of an installed package, use the following command [root@localhost]# rpm -qdf /usr/bin/vmstat /usr/share/doc/procps-3.2.8/BUGS /usr/share/doc/procps-3.2.8/COPYING /usr/share/doc/procps-3.2.8/COPYING.LIB 6/10/2014 19RPM
  • 20. How to Verify a RPM Package • Verifying a package compares information of installed files of the package against the rpm database. The -Vp (verify package) is used to verify a package. [root@localhost downloads]# rpm -Vp sqlbuddy-1.3.3- 1.noarch.rpm S.5....T. c /etc/httpd/conf.d/sqlbuddy.conf 6/10/2014 20RPM
  • 21. How to Verify all RPM Packages • Type the following command to verify all the installed rpm packages. [root@localhost]# rpm -Va S.5....T. c /etc/rc.d/rc.local .......T. c /etc/dnsmasq.conf .......T. /etc/ld.so.conf.d/kernel-2.6.32- 279.5.2.el6.i686.conf S.5....T. c /etc/yum.conf S.5....T. c /etc/yum.repos.d/epel.repo 6/10/2014 21RPM
  • 22. How to Import an RPM GPG key • To verify RHEL/CentOS/Fedora packages, you must import the GPG key. To do so, execute the following command. It will import CentOS 6 GPG key. [root@localhost]# rpm --import /etc/pki/rpm-gpg/RPM- GPG-KEY-CentOS-6 6/10/2014 22RPM
  • 23. How to List all Imported RPM GPG keys • To print all the imported GPG keys in your system, use the following command. [root@localhost]# rpm -qa gpg-pubkey* gpg-pubkey-0608b895-4bd22942 gpg-pubkey-7fac5991-4615767f gpg-pubkey-0f2672c8-4cd950ee 6/10/2014 23RPM
  • 24. How To rebuild Corrupted RPM Database • Sometimes rpm database gets corrupted and stops all the functionality of rpm and other applications on the system. So, at the time we need to rebuild the rpm database and restore it with the help of following command. [root@localhost]# cd /var/lib [root@localhost]# rm __db* [root@localhost]# rpm --rebuilddb [root@localhost]# rpmdb_verify Packages 6/10/2014 24RPM