Upload
rose-morrison
View
230
Download
0
Embed Size (px)
Citation preview
Managing Software using RPM
Managing Software using RPM
♦ OverviewIn Linux, Red Hat Package Manager referred as RPM is a tool used for managing software packages and its main function is to permit the installation and deletion of software packages. This module deals with the installation, verification and deletion of software using rpm.
♦ Lesson covered in this lesson► Installing Software► Viewing Software► Removing Software
Module 8 – Managing Software using RPM
Managing Software using RPM
Lesson 1 – Installing Software
Lesson1 - Installing Software
♦ IntroductionRed Hat Package Manager referred as RPM is a tool or in Linux for software package management that is used to maintain a database of software and their files. RPM is used to install software .
♦ Topics covered in this lesson► Red Hat Package Manager ► Installing Software through Command Line Interface► Installing Software through Graphical Method
Managing Software using RPM
Topic 1 – Red Hat Package Manager
♦ Red Hat Package Manager, referred as RPM is a tool in Linux for software package management .
♦ A RPM file comprises of all the files essential for running a specific program, and the important scripts to carry out the installation on its own
♦ The RPM tool carries out common management of all the RPM packages, which are installed on a particular host
Managing Software using RPM
♦ RPM packages are installed using the –i option to the rpm command.
♦ For example if the package, bash-3.0-18.src.rpm has to be installed then the below command can be given.
♦ Conventionally –i option is also used with –v option that makes rpm to be more verbose.
♦ The –h option makes rpm to display progress meters as given below# rpm -ivh evolution-2.0.4-6.src.rpm
Topic 2 - Installing Software through Command Line Interface
Managing Software using RPM
Topic 3 - Installing Software through Graphical Method
♦ To install new software using Graphical method, go to Main Menu =>Systems and Settings=>Add or Remove Packages
Package Management
Managing Software using RPM
Topic 3 - Installing Software through Graphical Method
♦ Select the RPM check box that has to be updated and click on Update
Package Details
Managing Software using RPM
♦ This will display the Completed System Preparation panel. Click on Continue Completed System Preparation
Topic 3 - Installing Software through Graphical Method
Managing Software using RPM
Topic 3 - Installing Software through Graphical Method
Updating System
Managing Software using RPM
Topic 3 - Installing Software through Graphical Method
♦ After updating, it will ask for the disk to install the software package. To continue with it, insert a disk and click on OK
Disk needed to install packages
Managing Software using RPM
Lesson 2 – Viewing Software
♦ Introduction
Once the software is installed, enquiry can be made on the software package and check whether the RPMs are installed. This process is querying.
♦ Topics Covered in this lesson
Querying the Software Package
Verifying the Installed Software Package
Managing Software using RPM
Topic 1- Querying the Software Package
♦ The enquiry of the installed software packages can be done using the command
[root@localhost ~]# rpm –q
♦ If the details about the software package i.e. name, version and release number of the installed software package has to be displayed, then the following command can be run.
[root@localhost ~]# rpm –q <software package>
Managing Software using RPM
Topic 2 – Verifying the Installed Software Package
♦ The software package that is installed has to be checked whether the installation has been successfully or not. So verification is done.
♦ The command used to verify a software package is [root@localhost ~]# rpm –V
To verify a software package having a specific file:[root@localhost ~]# rpm –Vf /usr/home/user1
To verify all installed software packages:[root@localhost ~]# rpm – Va
Managing Software using RPM
Graphical Method to Verify the software package
♦ Click on Main Menu =>Systems and Settings=>Add/Remove Packages and click on the software installed and click on Details.
Package Management
Managing Software using RPM
Graphical Method to Verify the software package
♦ Check the RPMs whose check boxes are enabled. Package Management Package Details
Managing Software using RPM
Lesson 3 – Removing Software
♦ IntroductionSoftware can be removed or uninstalled using RPM. The software, which is not in use currently, has to be removed so that the space occupied by it is saved for other programs. Software can be uninstalled using RPM on a command line interface and on a graphical interface as well.
♦ Topics covered in this Lesson1. Uninstalling Software using RPM
Managing Software using RPM
Topic 1 – Uninstalling Software using RPM
♦ Software applications can be uninstalled using the -e option to the rpm command:]
[root@localhost ~] # rpm -e <software name>
[root@localhost ~] #
♦ Only the name of the software package is used when the software has to be uninstalled.
Managing Software using RPM
Graphical method of Uninstalling Software
♦ Click on Main Menu =>Systems and Settings=>Add or Remove Packages.♦ Click on Details on the software that has to be installed.
Add/Remove Programs
Managing Software using RPM
Graphical method of Uninstalling Software
♦ Uncheck the check boxes of the software package and this way the software can be uninstalled from the system.
♦ Package Details
Managing Software using RPM
Conclusion
Summary
♦ Red Hat Package Manger, RPM is helpful in the management of software in the database
♦ While installing the software RPM traces whether the software required for software being installed is in the database or not
♦ When software is installed, it can be queried and the details about the rpms can be seen.
♦ Software that is not currently used has to be removed or uninstalled
Question and Answer Session