Monday, February 25, 2008

Dealing with RPM files

RPM is a software package in linux like in windows every software has a setup file. More precisely, consider your officeXP CD. In the CD some where there is a file setup.exe. When you click that file installation process starts begin. In case of linux format of setup files are in .RPM. Now it is easier to understand the actual theme. Right?

Scenario-1:
Easiest way to check whether a specific rpm is present on your system is

Command Format:$ rpm -qa | package-name/software name.

Example: $ rpm -qa | grep httpd
$ rpm -qa | grep mysql
$ rpm -qa | grep openoffice
$ rpm -qa | grep KPP
etc.


Scenario-2:
If you download any rpm from website the easiest way to install in your system is:

1. In graphical mode just double click in it. All the installations will done automatically.

2. In command mode, in terminal log as a root user

command format is # rpm rpm-name.

Ex: # rpm adobe-release-i386-1.0-1.noarch.rpm

N.B: Don't type '#' or '$' sign cause this is a shell prompting sign that appears automatically. When you log in terminal as a root user then prompting sign will '#' while as a normal user it is like '$'.

No comments: