SlideShare a Scribd company logo
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

More Related Content

What's hot

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
Novell
 
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
Acácio Oliveira
 
Redhat 6 & 7
Redhat 6 & 7Redhat 6 & 7
Redhat 6 & 7
r9social
 
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
 
Rh436 pdf
Rh436 pdfRh436 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
sushantbit04
 
C mode class
C mode classC mode class
C mode class
Accenture
 
Wheeler w 0450_linux_file_systems1
Wheeler w 0450_linux_file_systems1Wheeler w 0450_linux_file_systems1
Wheeler w 0450_linux_file_systems1
sprdd
 
IPTABLES
IPTABLESIPTABLES
IPTABLES
Tan Huynh Cong
 
Iptables Configuration
Iptables ConfigurationIptables Configuration
Iptables Configuration
stom123
 
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
subtitle
 
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
Angelo Failla
 
Apache1.ppt
Apache1.pptApache1.ppt
Apache1.ppt
webhostingguy
 
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
NETWAYS
 
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
Vikas Sharma
 
ORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASMORACLE HA NFS over Oracle ASM
ORACLE HA NFS over Oracle ASM
Pierrick Guicheteau
 
4.8 apend backups
4.8 apend backups4.8 apend backups
4.8 apend backups
Acácio Oliveira
 
Introduction to firewalls through Iptables
Introduction to firewalls through IptablesIntroduction to firewalls through Iptables
Introduction to firewalls through Iptables
Bud Siddhisena
 
introduction of iptables in linux
introduction of iptables in linuxintroduction of iptables in linux
introduction of iptables in linux
Nouman Baloch
 

What's hot (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
 

Viewers also liked

Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions system
Jainul Musani
 
Disabled Tourist Guide - Morroco
Disabled Tourist Guide - MorrocoDisabled Tourist Guide - Morroco
Disabled Tourist Guide - Morroco
Scott Rains
 
Linux17 MySQL_installation
Linux17 MySQL_installationLinux17 MySQL_installation
Linux17 MySQL_installation
Jainul Musani
 
Collection framework
Collection frameworkCollection framework
Collection framework
Jainul Musani
 
Linux12 clustering onlinux
Linux12 clustering onlinuxLinux12 clustering onlinux
Linux12 clustering onlinux
Jainul Musani
 
Agile projectdevelopment
Agile projectdevelopmentAgile projectdevelopment
Agile projectdevelopment
Jainul Musani
 
Linux15 dynamic dns-2
Linux15 dynamic dns-2Linux15 dynamic dns-2
Linux15 dynamic dns-2
Jainul Musani
 
Linux14 Dynamic DNS
Linux14 Dynamic DNSLinux14 Dynamic DNS
Linux14 Dynamic DNS
Jainul 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 bioflocs
International Aquafeed
 
Technique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) VuongTechnique Of Shrimp Culture (Final) Vuong
Technique Of Shrimp Culture (Final) Vuong
Ridzaludin
 
Tilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In BrazilTilapia Cage Farm Management In Brazil
Tilapia Cage Farm Management In Brazil
Alberto Nunes
 
Difference WAMP and XAMPP
Difference WAMP and XAMPPDifference WAMP and XAMPP
Difference WAMP and XAMPP
Jainul Musani
 
Introduction to aquaculture
Introduction to aquacultureIntroduction to aquaculture
Introduction to aquaculture
kumarsaurabh544
 
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
Fayina19z
 
Overfishing & Aquaculture
Overfishing & AquacultureOverfishing & Aquaculture
Overfishing & Aquaculture
tcooper66
 
Cage culture
Cage cultureCage culture
Cage culture
malikshamim
 
Cage Culture 3
Cage Culture 3Cage Culture 3
Cage Culture 3
Ridzaludin
 
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
Abontee
 
eCertificate-JAVA-2
eCertificate-JAVA-2eCertificate-JAVA-2
eCertificate-JAVA-2
Jainul Musani
 
SAP for Beginners
SAP for BeginnersSAP for Beginners
SAP for Beginners
Jainul Musani
 

Viewers also liked (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
 

Similar to Linux16 RPM

6 - Package Management in Red Hat
6 - Package Management in Red Hat6 - Package Management in Red Hat
6 - Package Management in Red Hat
Shafaan Khaliq Bhatti
 
Linux System Administration
Linux System AdministrationLinux System Administration
Linux System Administration
Jayant 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 management
Acá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 management
Acácio Oliveira
 
package mangement
package mangementpackage mangement
package mangement
ARYA 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 Database
Nikhil Kumar
 
$ make install
$ make install$ make install
$ make install
Marios Isaakidis
 
Linux Package Management.pptx
Linux Package Management.pptxLinux Package Management.pptx
Linux Package Management.pptx
HussienEndris1
 
Approaching package manager
Approaching package managerApproaching package manager
Approaching package manager
Timur Safin
 
Installing softwares in linux
Installing softwares in linuxInstalling softwares in linux
Installing softwares in linux
vedantsharma
 
OTRS
OTRSOTRS
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
VCP 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 Core
Nagios
 
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
 
Rpm Introduction
Rpm IntroductionRpm Introduction
Rpm Introduction
Shrinivasan T
 
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 & Nmap
Matt Vieyra
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
Subhas Kumar Ghosh
 
Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015
ice799
 
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
 

Similar to Linux16 RPM (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 2/19/2015
Puppet Camp LA 2/19/2015Puppet Camp LA 2/19/2015
Puppet Camp LA 2/19/2015
 
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)
 

More from Jainul Musani

Python: The Versatile Programming Language - Introduction
Python: The Versatile Programming Language - IntroductionPython: The Versatile Programming Language - Introduction
Python: The Versatile Programming Language - Introduction
Jainul Musani
 
Python a Versatile Programming Language - Introduction
Python a Versatile Programming Language - IntroductionPython a Versatile Programming Language - Introduction
Python a Versatile Programming Language - Introduction
Jainul Musani
 
React js t8 - inlinecss
React js   t8 - inlinecssReact js   t8 - inlinecss
React js t8 - inlinecss
Jainul Musani
 
React js t7 - forms-events
React js   t7 - forms-eventsReact js   t7 - forms-events
React js t7 - forms-events
Jainul Musani
 
React js t6 -lifecycle
React js   t6 -lifecycleReact js   t6 -lifecycle
React js t6 -lifecycle
Jainul Musani
 
React js t5 - state
React js   t5 - stateReact js   t5 - state
React js t5 - state
Jainul Musani
 
React js t4 - components
React js   t4 - componentsReact js   t4 - components
React js t4 - components
Jainul Musani
 
React js t3 - es6
React js   t3 - es6React js   t3 - es6
React js t3 - es6
Jainul Musani
 
React js t2 - jsx
React js   t2 - jsxReact js   t2 - jsx
React js t2 - jsx
Jainul Musani
 
React js t1 - introduction
React js   t1 - introductionReact js   t1 - introduction
React js t1 - introduction
Jainul Musani
 
ExpressJs Session01
ExpressJs Session01ExpressJs Session01
ExpressJs Session01
Jainul Musani
 
NodeJs Session03
NodeJs Session03NodeJs Session03
NodeJs Session03
Jainul Musani
 
NodeJs Session02
NodeJs Session02NodeJs Session02
NodeJs Session02
Jainul Musani
 
Nodejs Session01
Nodejs Session01Nodejs Session01
Nodejs Session01
Jainul Musani
 
Java exercise1
Java exercise1Java exercise1
Java exercise1
Jainul Musani
 
Fundamentals of JDBC
Fundamentals of JDBCFundamentals of JDBC
Fundamentals of JDBC
Jainul Musani
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
Jainul Musani
 
Core Java Special
Core Java SpecialCore Java Special
Core Java Special
Jainul Musani
 
Cassandra-vs-MongoDB
Cassandra-vs-MongoDBCassandra-vs-MongoDB
Cassandra-vs-MongoDB
Jainul Musani
 
MongoDB-SESSION03
MongoDB-SESSION03MongoDB-SESSION03
MongoDB-SESSION03
Jainul Musani
 

More from Jainul Musani (20)

Python: The Versatile Programming Language - Introduction
Python: The Versatile Programming Language - IntroductionPython: The Versatile Programming Language - Introduction
Python: The Versatile Programming Language - Introduction
 
Python a Versatile Programming Language - Introduction
Python a Versatile Programming Language - IntroductionPython a Versatile Programming Language - Introduction
Python a Versatile Programming Language - Introduction
 
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
 

Recently uploaded

Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
RamseyBerglund
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
melliereed
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 

Recently uploaded (20)

Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
Electric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger HuntElectric Fetus - Record Store Scavenger Hunt
Electric Fetus - Record Store Scavenger Hunt
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Nutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour TrainingNutrition Inc FY 2024, 4 - Hour Training
Nutrition Inc FY 2024, 4 - Hour Training
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 

Linux16 RPM

  • 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