Sunday, July 11, 2010

Examples of rpm

  • Display the name of the package which installs the file /etc/exports
    rpm -qf /etc/exports
  • Examine the changlog for the installed package postfix
    rpm -q -changelog postfix
  • Installed the package is broken. In order to go back to the previous version of the same package
    rpm -i -oldpackage packageName
  • Display all the configuration files with path for the installed package
    rpm -qc postfix
  • Display all files  which will install/installed from the RPM package postfix-2.6.1-2.1.i586 with installation path
    rpm -qlp postfix-2.6.1-2.1.i586
  • Update linux kernel
    rpm -Uvh kernel-package
  • Update a package only if an earlier version is currently installed
    rpm -F packageName
  • Remove a installed package
    rpm -ev packageName
  • list all installed packages
    rpm -qa
  • Back to Linux LPIC1 Exam Objectives

No comments: