Shashikant shah

Tuesday, 18 November 2014

RPM Details


1. Find out what package a file belongs.

# rpm -qf /etc/passwd

2. Remove and installed package without checking for dependencies.

# rpm -ev --nodeps {rpmname}

# rpm -ivh --nodeps {rpmname}

3.Display list all installed packages

# rpm -qa {rpmname}

4.Display installed information along with package version and short description

# rpm -qi {package}

5.Display list of configuration file for a package

# rpm -qc {pacakge-name}

6.Find out what dependencies a rpm file has

# rpm -qpR {.rpm-file}

7.Display list of all recently installed RPMs

# rpm -qa --last

8.How To rebuild Corrupted RPM Database.

# cd /var/lib
# rm __db*
# rpm --rebuilddb
# rpmdb_verify Packages

No comments:

Post a Comment