Description

rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. A package consists of an archive of files and meta-data used to install and erase the archive files.

RPM Commands:

  • To install a RPM package.
  1. rpm -ivh elinks.rpm
  • To uninstall a RPM package.
  1. rpm -e elinks.rpm
  • To upgrade a RPM package. RPM automatically uninstall the old version of the foo package and Install the new package.
  1. rpm -Uvh elinks.rpm
  • To query all installed packages.
  1. rpm -qa
  • To query a RPM package.
  1. rpm -q elinks
  • To display package information.
  1. rpm -qi elinks
  • To list files in installed package.
  1. rpm -ql elinks
  • To find out which package owns a file?
  1. rpm -qf /usr/bin/elinks
  • How to find out the list files in RPM file.
  1. rpm -qpl elinks.rpm
  • To verify an installed package.
  1. rpm –verify elinks

Note:

–replacefiles

Install the packages even if they replace files from other, already installed, packages.

–replacepkgs

Install the packages even if some of them are already installed on this system.

–test

Do not install the package, simply check for and report potential conflicts.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.