Installing & Deleting Software Packages

Installing & Deleting Software Packages :
Installing Package :
To Installing an rpm software package, use the following command with -i option.


Syn :

rpm -i package_file_name

Options :
-i –> Install a Package
-v –> Verbose for a nicer display
-h –> Print hash marks as the package archive is unpacked

Where package_file_name specifies the name of the file that contains the package you want to install.

Cmd :

rpm -i gnorpm-0.9-10.i386.rpm

Administrators like to include -v & -h Flags causes the command to print status information as its excutes.

Ex :

#rpm -ivh gnorom-0.-10.i386.rpm
Press Enter & Type

RPM Arguments :
1) –force
2) –nodeps
3) –replacefiles

Ex :

rpm -i –nodeps gnorpm-0.-10.i386
Press Enter
gnome -linuxconf-0.23-1.i386.rpm

Deleting Packages :
To Remove an installed package, issue a command

Cmd :

rpm -e package_name


Performing Updates & Fixes :
RPM makes it easy to install new versions of package. issue a command

Cmd :

rpm -uvh package_file_name

Where package file name is the name of the file containing the new version of the package

Ex :

rpm -Fvh gnorpm-0.9-10.i386.rpm

Identifying Installed Packages :
RPM the version and build numbers of an installed packages, issue a command

Cmd :

rpm -q package_name

Ex :


The version and build number of each installed package.

Cmd :

rpm -qa

Determining File Ownership :
RPM to learn which package, owns a particular file, issue a command

Syn :

rpm -qf filename

Cmd :

rpm -qf /etc/initab

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s