SlideShare ist ein Scribd-Unternehmen logo
1 von 52
Red Hat
Package
Manager
RPM
1
What is RPM?
• RPM stands for
Red Hat Package Manager.
• RPM command is used for installing,
uninstalling, upgrading, querying,
listing, and checking RPM packages
on your Linux system.
2
What is RPM?
• With root privilege, you can use the
rpm command with appropriate
options to manage the RPM
software packages.
3
What is RPM?
• The Red Hat Package Manager (RPM)
is a toolset used to build and
manage software packages on UNIX
systems.
• Distributed with the Red Hat Linux
distribution and its derivatives, RPM
also works on any UNIX as it is open
source.
4
What is RPM?
• Package management is rather
simple in its principles, though it can
be tricky in its implementations.
• Briefly, it means the managed
installation of software, managing
installed software, and the removal
of software packages from a system
in a simplified manner.
5
What is RPM?
• RPM arose out of the needs to do this
effectively, and no other meaningful
solution was available.
• RPM uses a proprietary file format,
unlike some other UNIX software
package managers.
6
What is RPM?
• The naming scheme of RPM files is
itself a standardized convention.
• RPMs have the format (name)-
(version)-(build).(platform).rpm.
• For example, the name cat-2.4-
7.i386.rpm would mean an RPM for the
utility "cat" version 2.4, build 7 for the
x86.
7
Why Package
Management...?
• At first glance you may say to
yourself, "I can manage this myself.
It's not that many components ..." In
fact, for something as small as, say,
cat, which has one executable and
one man page, this may be so.
8
Why Package
Management...?
• But consider, say, KDE, which has a
mountain of components,
dependencies, and likes to stick
them everywhere.
• Keeping track of it all would be tough,
if not impossible.
9
Why Package
Management...?
• Package management makes it all
easier. By letting a program maintain
the information about the binaries,
their configuration files, and
everything else about them, you can
identify which ones are installed,
remove them easily or upgrade them
readily, as well.
10
Why Package
Management...?
• Installation becomes a snap.
• You select what you want, and ask the
system to take care of the dirty work for
you.
• Unpack the program, ensure that there
is space, place things in the right order,
and set them up for you. It's great, it's
like having a valet take care of your car
when you go to a restaurant.
11
Why Package
Management...?
• Dependencies, or additional
requirements for a software package,
are also managed seamlessly by a
good package manager.
12
Why Package
Management...?
• Management of installed packages is
also greatly facilitated by a good
package management system.
• It keeps a full list of software
installed, which is useful to see if you
have something installed. More
importantly, it makes upgrading a
breeze.
13
Why Package
Management...?
• Lastly, this makes verification of a
software package quite easy to do.
• By knowing what packages are
installed, and what the properties of
the components are, you can quickly
diagnose a problem and hopefully
fix it quickly.
14
Installation Using RPM
• This is the most basic RPM function,
and one of the most popular: the
installation of new software
packages using RPM. To do this, give
rpm the -i flag and point it to an
RPM:
# rpm -i (package)
15
• If all goes well and send you back to
a command prompt without any
messages.
• Use the -v flag to turn on some
verbosity:
# rpm -iv (package)
16
Installation Using RPM
• All that gets printed out is the package
name, but no statistics on the
progress or what it did. You can get a
hash marked output of the progress is
you use the -h flag. People seem to like
using -ivh together to get a "pretty"
output:
# rpm -ivh (package)
17
Installation Using RPM
• For example, In the MySQL-client-
3.23.57-1.i386.rpm file:
MySQL-client – Package Name
3.23.57 – Version
1 – Release
i386 – Architecture
18
Installation Using RPM
1) The following rpm command installs
Mysql client package.
# rpm -ivh MySQL-client-3.23.57-
1.i386.rpm
Preparing...####################################
[100%]
1:MySQL-client ############################## [100%]
19
Installation Using RPM
rpm command and options
• -i : install a package
• -v : verbose
• -h : print hash marks as the
package archive is unpacked.
20
Installation Using RPM
• Sometimes RPM will whine (complain)
about a dependency which is installed
but isn't registered. Perhaps you
installed it not using an RPM for the
package (ie OpenSSL). To get
around this, you can force it to ignore
dependencies:
# rpm -ivv --nodeps (package)
21
Installation Using RPM
• On rare occassion RPM will mess up
and insist that you have a package
installed when you don't. While this is
usually a sign that something is
amiss, it can be worked around. Just
force the installation:
• # rpm -ivv --force (package)
22
Installation Using RPM
2) Query all the RPM Packages using
rpm –qa
• -q query operation
• -a queries all installed packages
23
Installation Using RPM
• To identify whether a particular rpm
package is installed on your system,
combine rpm and grep command as
shown below. Following command
checks whether cdrecord package is
installed on your system.
# rpm -qa | grep 'cdrecord'
24
Installation Using RPM
3) Query a Particular RPM Package
using rpm -q
• The above example lists all
currently installed package. After
installation of a package to check the
installation, you can query a
particular package and verify as
shown below:
25
Installation Using RPM
26
Installation Using RPM
Installation Using RPM
4) Query RPM Packages in a various
format using rpm –queryformat
• Rpm command provides an option –
queryformat, which allows you to
give the header tag names, to list the
packages. Enclose the header tag
with in {}.
27
28
Installation Using RPM
5) Which RPM package does a file belong
to? – Use rpm –qf
• Let us say, you have list of files and you
would want to know which package
owns all these files. rpm command has
options to achieve this.
• The following example shows that
/usr/bin/mysqlaccess file is part of the
MySQL-client-3.23.57-1 rpm.
29
Installation Using RPM
30
Installation Using RPM
6) Locate documentation of a package
that owns file using rpm –qdf
• Use the following to know the list of
documentations, for a package that
owns a file. The following command,
gives the location of all the manual
pages related to mysql package.
31
Installation Using RPM
Installation Using RPM
32
7) Information about Installed RPM
Package using rpm -qi
• rpm command provides a lot of
information about an installed
pacakge using rpm -qi as shown
below:
33
Installation Using RPM
Installation Using RPM
34
• If you have an RPM file that you
would like to install, but want to
know more information about it
before installing, you can do the
following:
35
Installation Using RPM
Installation Using RPM
36
-i : view information about an rpm
-p : specify a package name
37
Installation Using RPM
8) List all the Files in a Package using
rpm –qlp
• To list the content of a RPM
package, use the following
command, which will list out the files
without extracting into the local
directory folder.
38
Installation Using RPM
Installation Using RPM
39
9) List the Dependency Packages
using rpm –qRP
40
Installation Using RPM
10) Find out the state of files in a
package using rpm –qsp
The following command is to find
state (installed, replaced or normal)
for all the files in a RPM package.
41
Installation Using RPM
Installation Using RPM
42
11)Verify a Particular RPM Package
using rpm –Vp
Verifying a package compares
information about the installed files
in the package with information
about the files taken from the
package metadata stored in the rpm
database.
43
Installation Using RPM
44
Installation Using RPM
45
• 12. Verify a Package Owning file
using rpm -Vf
• The following command verify the
package which owns the given
filename.
46
Installation Using RPM
• 13. Upgrading a RPM Package
using rpm –Uvh
• RPM automatically un-installs
existing versions of the package
before installing the new one. If an old
version of the package is not found,
the upgrade option will still install it.
47
Installation Using RPM
Installation Using RPM
48
14. Uninstalling a RPM Package
using rpm -e
• To remove an installed rpm package
using -e as shown below. After
uninstallation, you can query using
rpm -qa and verify the uninstallation.
49
Installation Using RPM
15. Verifying all the RPM Packages
using rpm -Va
• The following command verifies all
the installed packages.
50
Installation Using RPM
Installation Using RPM
51
Bibliography
1) http://linuxgazette.net/68/nazario.html
2) http://www.thegeekstuff.com/2010/07/r
pm-command-examples/
3) http://linuxtutorial.info/modules.php?
name=Howto&pagename=RPM-
HOWTO/intro.html

Weitere ähnliche Inhalte

Was ist angesagt?

Configure, Pack and Distribute: An RPM Creation Workshop
Configure, Pack and Distribute: An RPM Creation WorkshopConfigure, Pack and Distribute: An RPM Creation Workshop
Configure, Pack and Distribute: An RPM Creation WorkshopNovell
 
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
 
Redhat 6 & 7
Redhat 6 & 7Redhat 6 & 7
Redhat 6 & 7r9social
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)Sumant Garg
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting Aleksey Korzun
 
How to install_and_configure_r_on_a_linux_server
How to install_and_configure_r_on_a_linux_serverHow to install_and_configure_r_on_a_linux_server
How to install_and_configure_r_on_a_linux_serversushantbit04
 
C mode class
C mode classC mode class
C mode classAccenture
 
Wheeler w 0450_linux_file_systems1
Wheeler w 0450_linux_file_systems1Wheeler w 0450_linux_file_systems1
Wheeler w 0450_linux_file_systems1sprdd
 
Iptables Configuration
Iptables ConfigurationIptables Configuration
Iptables Configurationstom123
 
NetApp C-mode for 7 mode engineers
NetApp C-mode for 7 mode engineersNetApp C-mode for 7 mode engineers
NetApp C-mode for 7 mode engineerssubtitle
 
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructureDevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructureAngelo Failla
 
OSDC 2016 - Tuning Linux for your Database by Colin Charles
OSDC 2016 - Tuning Linux for your Database by Colin CharlesOSDC 2016 - Tuning Linux for your Database by Colin Charles
OSDC 2016 - Tuning Linux for your Database by Colin CharlesNETWAYS
 
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guideBasic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guideVikas Sharma
 
Introduction to firewalls through Iptables
Introduction to firewalls through IptablesIntroduction to firewalls through Iptables
Introduction to firewalls through IptablesBud Siddhisena
 
introduction of iptables in linux
introduction of iptables in linuxintroduction of iptables in linux
introduction of iptables in linuxNouman Baloch
 

Was ist angesagt? (20)

Configure, Pack and Distribute: An RPM Creation Workshop
Configure, Pack and Distribute: An RPM Creation WorkshopConfigure, Pack and Distribute: An RPM Creation Workshop
Configure, Pack and Distribute: An RPM Creation Workshop
 
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
 
Redhat 6 & 7
Redhat 6 & 7Redhat 6 & 7
Redhat 6 & 7
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
 
Rh436 pdf
Rh436 pdfRh436 pdf
Rh436 pdf
 
How to install_and_configure_r_on_a_linux_server
How to install_and_configure_r_on_a_linux_serverHow to install_and_configure_r_on_a_linux_server
How to install_and_configure_r_on_a_linux_server
 
C mode class
C mode classC mode class
C mode class
 
Wheeler w 0450_linux_file_systems1
Wheeler w 0450_linux_file_systems1Wheeler w 0450_linux_file_systems1
Wheeler w 0450_linux_file_systems1
 
IPTABLES
IPTABLESIPTABLES
IPTABLES
 
Iptables Configuration
Iptables ConfigurationIptables Configuration
Iptables Configuration
 
NetApp C-mode for 7 mode engineers
NetApp C-mode for 7 mode engineersNetApp C-mode for 7 mode engineers
NetApp C-mode for 7 mode engineers
 
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructureDevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
DevopsItalia2015 - DHCP at Facebook - Evolution of an infrastructure
 
Apache1.ppt
Apache1.pptApache1.ppt
Apache1.ppt
 
OSDC 2016 - Tuning Linux for your Database by Colin Charles
OSDC 2016 - Tuning Linux for your Database by Colin CharlesOSDC 2016 - Tuning Linux for your Database by Colin Charles
OSDC 2016 - Tuning Linux for your Database by Colin Charles
 
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guideBasic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
Basic concepts for_clustered_data_ontap_8.3_v1.1-lab_guide
 
ORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASMORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASM
 
4.8 apend backups
4.8 apend backups4.8 apend backups
4.8 apend backups
 
Introduction to firewalls through Iptables
Introduction to firewalls through IptablesIntroduction to firewalls through Iptables
Introduction to firewalls through Iptables
 
introduction of iptables in linux
introduction of iptables in linuxintroduction of iptables in linux
introduction of iptables in linux
 

Andere mochten auch

Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions systemJainul Musani
 
Disabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoDisabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoScott Rains
 
Linux17 MySQL_installation
Linux17 MySQL_installationLinux17 MySQL_installation
Linux17 MySQL_installationJainul Musani
 
Collection framework
Collection frameworkCollection framework
Collection frameworkJainul Musani
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinuxJainul Musani
 
Agile projectdevelopment
Agile projectdevelopmentAgile projectdevelopment
Agile projectdevelopmentJainul Musani
 
Linux15 dynamic dns-2
Linux15 dynamic dns-2Linux15 dynamic dns-2
Linux15 dynamic dns-2Jainul Musani
 
Feed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocsFeed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocsInternational Aquafeed
 
Technique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongTechnique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongRidzaludin
 
Tilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilTilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilAlberto Nunes
 
Difference WAMP and XAMPP
Difference WAMP and XAMPPDifference WAMP and XAMPP
Difference WAMP and XAMPPJainul Musani
 
Introduction to aquaculture
Introduction to aquacultureIntroduction to aquaculture
Introduction to aquaculturekumarsaurabh544
 
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, MalaysiaPolyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, MalaysiaFayina19z
 
Overfishing & Aquaculture
Overfishing & AquacultureOverfishing & Aquaculture
Overfishing & Aquaculturetcooper66
 
Cage Culture 3
Cage Culture 3Cage Culture 3
Cage Culture 3Ridzaludin
 
Presentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and PlasteringPresentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and PlasteringAbontee
 

Andere mochten auch (20)

Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions system
 
Disabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoDisabled Tourist Guide - Morroco
Disabled Tourist Guide - Morroco
 
Linux17 MySQL_installation
Linux17 MySQL_installationLinux17 MySQL_installation
Linux17 MySQL_installation
 
Collection framework
Collection frameworkCollection framework
Collection framework
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinux
 
Agile projectdevelopment
Agile projectdevelopmentAgile projectdevelopment
Agile projectdevelopment
 
Linux15 dynamic dns-2
Linux15 dynamic dns-2Linux15 dynamic dns-2
Linux15 dynamic dns-2
 
Linux14 Dynamic DNS
Linux14 Dynamic DNSLinux14 Dynamic DNS
Linux14 Dynamic DNS
 
Feed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocsFeed management in an intensive shrimp farming system with bioflocs
Feed management in an intensive shrimp farming system with bioflocs
 
Technique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongTechnique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) Vuong
 
Tilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilTilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In Brazil
 
Difference WAMP and XAMPP
Difference WAMP and XAMPPDifference WAMP and XAMPP
Difference WAMP and XAMPP
 
Introduction to aquaculture
Introduction to aquacultureIntroduction to aquaculture
Introduction to aquaculture
 
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, MalaysiaPolyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
Polyculture and Integrated Tilapia Farming Systems - Kuala Lumpur, Malaysia
 
Overfishing & Aquaculture
Overfishing & AquacultureOverfishing & Aquaculture
Overfishing & Aquaculture
 
Cage culture
Cage cultureCage culture
Cage culture
 
Cage Culture 3
Cage Culture 3Cage Culture 3
Cage Culture 3
 
Presentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and PlasteringPresentation on Brick Masonry, Paint and Plastering
Presentation on Brick Masonry, Paint and Plastering
 
eCertificate-JAVA-2
eCertificate-JAVA-2eCertificate-JAVA-2
eCertificate-JAVA-2
 
SAP for Beginners
SAP for BeginnersSAP for Beginners
SAP for Beginners
 

Ähnlich wie RPM Package Manager Guide: 15 Commands to Install, Uninstall, Upgrade & Manage Packages

Linux System Administration
Linux System AdministrationLinux System Administration
Linux System AdministrationJayant Dalvi
 
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
 
package mangement
package mangementpackage mangement
package mangementARYA TM
 
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
 
Linux Package Management.pptx
Linux Package Management.pptxLinux Package Management.pptx
Linux Package Management.pptxHussienEndris1
 
Approaching package manager
Approaching package managerApproaching package manager
Approaching package managerTimur Safin
 
Installing softwares in linux
Installing softwares in linuxInstalling softwares in linux
Installing softwares in linuxvedantsharma
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7VCP Muthukrishna
 
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNagios
 
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.Marc Trimble
 
Understanding Debian Packages (2014)
Understanding Debian Packages (2014)Understanding Debian Packages (2014)
Understanding Debian Packages (2014)Miriam Ruiz
 
Pet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & NmapPet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & NmapMatt Vieyra
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configurationSubhas Kumar Ghosh
 
Puppet Camp LA 2015: Package Managers and Puppet (Beginner)
Puppet Camp LA 2015: Package Managers and Puppet (Beginner)Puppet Camp LA 2015: Package Managers and Puppet (Beginner)
Puppet Camp LA 2015: Package Managers and Puppet (Beginner)Puppet
 
Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015ice799
 

Ähnlich wie RPM Package Manager Guide: 15 Commands to Install, Uninstall, Upgrade & Manage Packages (20)

6 - Package Management in Red Hat
6 - Package Management in Red Hat6 - Package Management in Red Hat
6 - Package Management in Red Hat
 
Linux System Administration
Linux System AdministrationLinux System Administration
Linux System Administration
 
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
 
package mangement
package mangementpackage mangement
package mangement
 
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
 
$ make install
$ make install$ make install
$ make install
 
Linux Package Management.pptx
Linux Package Management.pptxLinux Package Management.pptx
Linux Package Management.pptx
 
Approaching package manager
Approaching package managerApproaching package manager
Approaching package manager
 
Installing softwares in linux
Installing softwares in linuxInstalling softwares in linux
Installing softwares in linux
 
OTRS
OTRSOTRS
OTRS
 
How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7How To Install OpenFire in CentOS 7
How To Install OpenFire in CentOS 7
 
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios CoreNrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
Nrpe - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core
 
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
NRPE - Nagios Remote Plugin Executor. NRPE plugin for Nagios Core 4 and others.
 
Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
 
Understanding Debian Packages (2014)
Understanding Debian Packages (2014)Understanding Debian Packages (2014)
Understanding Debian Packages (2014)
 
Pet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & NmapPet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & Nmap
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
 
Puppet Camp LA 2015: Package Managers and Puppet (Beginner)
Puppet Camp LA 2015: Package Managers and Puppet (Beginner)Puppet Camp LA 2015: Package Managers and Puppet (Beginner)
Puppet Camp LA 2015: Package Managers and Puppet (Beginner)
 
Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015
 

Mehr von Jainul Musani

Mehr von Jainul Musani (20)

React js t8 - inlinecss
React js   t8 - inlinecssReact js   t8 - inlinecss
React js t8 - inlinecss
 
React js t7 - forms-events
React js   t7 - forms-eventsReact js   t7 - forms-events
React js t7 - forms-events
 
React js t6 -lifecycle
React js   t6 -lifecycleReact js   t6 -lifecycle
React js t6 -lifecycle
 
React js t5 - state
React js   t5 - stateReact js   t5 - state
React js t5 - state
 
React js t4 - components
React js   t4 - componentsReact js   t4 - components
React js t4 - components
 
React js t3 - es6
React js   t3 - es6React js   t3 - es6
React js t3 - es6
 
React js t2 - jsx
React js   t2 - jsxReact js   t2 - jsx
React js t2 - jsx
 
React js t1 - introduction
React js   t1 - introductionReact js   t1 - introduction
React js t1 - introduction
 
ExpressJs Session01
ExpressJs Session01ExpressJs Session01
ExpressJs Session01
 
NodeJs Session03
NodeJs Session03NodeJs Session03
NodeJs Session03
 
NodeJs Session02
NodeJs Session02NodeJs Session02
NodeJs Session02
 
Nodejs Session01
Nodejs Session01Nodejs Session01
Nodejs Session01
 
Java exercise1
Java exercise1Java exercise1
Java exercise1
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
 
Cassandra-vs-MongoDB
Cassandra-vs-MongoDBCassandra-vs-MongoDB
Cassandra-vs-MongoDB
 
MongoDB-SESSION03
MongoDB-SESSION03MongoDB-SESSION03
MongoDB-SESSION03
 
MongoDB-SESSION02
MongoDB-SESSION02MongoDB-SESSION02
MongoDB-SESSION02
 
MongoDB-SESION01
MongoDB-SESION01MongoDB-SESION01
MongoDB-SESION01
 

Kürzlich hochgeladen

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxAneriPatwari
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfChristalin Nelson
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvRicaMaeCastro1
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 

Kürzlich hochgeladen (20)

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
CHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptxCHEST Proprioceptive neuromuscular facilitation.pptx
CHEST Proprioceptive neuromuscular facilitation.pptx
 
Indexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdfIndexing Structures in Database Management system.pdf
Indexing Structures in Database Management system.pdf
 
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnvESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
ESP 4-EDITED.pdfmmcncncncmcmmnmnmncnmncmnnjvnnv
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 

RPM Package Manager Guide: 15 Commands to Install, Uninstall, Upgrade & Manage Packages

  • 2. What is RPM? • RPM stands for Red Hat Package Manager. • RPM command is used for installing, uninstalling, upgrading, querying, listing, and checking RPM packages on your Linux system. 2
  • 3. What is RPM? • With root privilege, you can use the rpm command with appropriate options to manage the RPM software packages. 3
  • 4. What is RPM? • The Red Hat Package Manager (RPM) is a toolset used to build and manage software packages on UNIX systems. • Distributed with the Red Hat Linux distribution and its derivatives, RPM also works on any UNIX as it is open source. 4
  • 5. What is RPM? • Package management is rather simple in its principles, though it can be tricky in its implementations. • Briefly, it means the managed installation of software, managing installed software, and the removal of software packages from a system in a simplified manner. 5
  • 6. What is RPM? • RPM arose out of the needs to do this effectively, and no other meaningful solution was available. • RPM uses a proprietary file format, unlike some other UNIX software package managers. 6
  • 7. What is RPM? • The naming scheme of RPM files is itself a standardized convention. • RPMs have the format (name)- (version)-(build).(platform).rpm. • For example, the name cat-2.4- 7.i386.rpm would mean an RPM for the utility "cat" version 2.4, build 7 for the x86. 7
  • 8. Why Package Management...? • At first glance you may say to yourself, "I can manage this myself. It's not that many components ..." In fact, for something as small as, say, cat, which has one executable and one man page, this may be so. 8
  • 9. Why Package Management...? • But consider, say, KDE, which has a mountain of components, dependencies, and likes to stick them everywhere. • Keeping track of it all would be tough, if not impossible. 9
  • 10. Why Package Management...? • Package management makes it all easier. By letting a program maintain the information about the binaries, their configuration files, and everything else about them, you can identify which ones are installed, remove them easily or upgrade them readily, as well. 10
  • 11. Why Package Management...? • Installation becomes a snap. • You select what you want, and ask the system to take care of the dirty work for you. • Unpack the program, ensure that there is space, place things in the right order, and set them up for you. It's great, it's like having a valet take care of your car when you go to a restaurant. 11
  • 12. Why Package Management...? • Dependencies, or additional requirements for a software package, are also managed seamlessly by a good package manager. 12
  • 13. Why Package Management...? • Management of installed packages is also greatly facilitated by a good package management system. • It keeps a full list of software installed, which is useful to see if you have something installed. More importantly, it makes upgrading a breeze. 13
  • 14. Why Package Management...? • Lastly, this makes verification of a software package quite easy to do. • By knowing what packages are installed, and what the properties of the components are, you can quickly diagnose a problem and hopefully fix it quickly. 14
  • 15. Installation Using RPM • This is the most basic RPM function, and one of the most popular: the installation of new software packages using RPM. To do this, give rpm the -i flag and point it to an RPM: # rpm -i (package) 15
  • 16. • If all goes well and send you back to a command prompt without any messages. • Use the -v flag to turn on some verbosity: # rpm -iv (package) 16 Installation Using RPM
  • 17. • All that gets printed out is the package name, but no statistics on the progress or what it did. You can get a hash marked output of the progress is you use the -h flag. People seem to like using -ivh together to get a "pretty" output: # rpm -ivh (package) 17 Installation Using RPM
  • 18. • For example, In the MySQL-client- 3.23.57-1.i386.rpm file: MySQL-client – Package Name 3.23.57 – Version 1 – Release i386 – Architecture 18 Installation Using RPM
  • 19. 1) The following rpm command installs Mysql client package. # rpm -ivh MySQL-client-3.23.57- 1.i386.rpm Preparing...#################################### [100%] 1:MySQL-client ############################## [100%] 19 Installation Using RPM
  • 20. rpm command and options • -i : install a package • -v : verbose • -h : print hash marks as the package archive is unpacked. 20 Installation Using RPM
  • 21. • Sometimes RPM will whine (complain) about a dependency which is installed but isn't registered. Perhaps you installed it not using an RPM for the package (ie OpenSSL). To get around this, you can force it to ignore dependencies: # rpm -ivv --nodeps (package) 21 Installation Using RPM
  • 22. • On rare occassion RPM will mess up and insist that you have a package installed when you don't. While this is usually a sign that something is amiss, it can be worked around. Just force the installation: • # rpm -ivv --force (package) 22 Installation Using RPM
  • 23. 2) Query all the RPM Packages using rpm –qa • -q query operation • -a queries all installed packages 23 Installation Using RPM
  • 24. • To identify whether a particular rpm package is installed on your system, combine rpm and grep command as shown below. Following command checks whether cdrecord package is installed on your system. # rpm -qa | grep 'cdrecord' 24 Installation Using RPM
  • 25. 3) Query a Particular RPM Package using rpm -q • The above example lists all currently installed package. After installation of a package to check the installation, you can query a particular package and verify as shown below: 25 Installation Using RPM
  • 27. Installation Using RPM 4) Query RPM Packages in a various format using rpm –queryformat • Rpm command provides an option – queryformat, which allows you to give the header tag names, to list the packages. Enclose the header tag with in {}. 27
  • 29. 5) Which RPM package does a file belong to? – Use rpm –qf • Let us say, you have list of files and you would want to know which package owns all these files. rpm command has options to achieve this. • The following example shows that /usr/bin/mysqlaccess file is part of the MySQL-client-3.23.57-1 rpm. 29 Installation Using RPM
  • 31. 6) Locate documentation of a package that owns file using rpm –qdf • Use the following to know the list of documentations, for a package that owns a file. The following command, gives the location of all the manual pages related to mysql package. 31 Installation Using RPM
  • 33. 7) Information about Installed RPM Package using rpm -qi • rpm command provides a lot of information about an installed pacakge using rpm -qi as shown below: 33 Installation Using RPM
  • 35. • If you have an RPM file that you would like to install, but want to know more information about it before installing, you can do the following: 35 Installation Using RPM
  • 37. -i : view information about an rpm -p : specify a package name 37 Installation Using RPM
  • 38. 8) List all the Files in a Package using rpm –qlp • To list the content of a RPM package, use the following command, which will list out the files without extracting into the local directory folder. 38 Installation Using RPM
  • 40. 9) List the Dependency Packages using rpm –qRP 40 Installation Using RPM
  • 41. 10) Find out the state of files in a package using rpm –qsp The following command is to find state (installed, replaced or normal) for all the files in a RPM package. 41 Installation Using RPM
  • 43. 11)Verify a Particular RPM Package using rpm –Vp Verifying a package compares information about the installed files in the package with information about the files taken from the package metadata stored in the rpm database. 43 Installation Using RPM
  • 45. 45
  • 46. • 12. Verify a Package Owning file using rpm -Vf • The following command verify the package which owns the given filename. 46 Installation Using RPM
  • 47. • 13. Upgrading a RPM Package using rpm –Uvh • RPM automatically un-installs existing versions of the package before installing the new one. If an old version of the package is not found, the upgrade option will still install it. 47 Installation Using RPM
  • 49. 14. Uninstalling a RPM Package using rpm -e • To remove an installed rpm package using -e as shown below. After uninstallation, you can query using rpm -qa and verify the uninstallation. 49 Installation Using RPM
  • 50. 15. Verifying all the RPM Packages using rpm -Va • The following command verifies all the installed packages. 50 Installation Using RPM
  • 52. Bibliography 1) http://linuxgazette.net/68/nazario.html 2) http://www.thegeekstuff.com/2010/07/r pm-command-examples/ 3) http://linuxtutorial.info/modules.php? name=Howto&pagename=RPM- HOWTO/intro.html