Centos – How to list RPM dependencies

centoscentos5dependenciesredhatrpm

Our production server is running CentOS release 5.2 (Final).

How do I see/get/list all the dependencies of an already installed RPM package?

For example: SQLite v3.3.6 is already installed in the server. I want to see all the dependencies of this particular package.

Here is the output of the command: rpm -qa |grep sqlite

python-sqlite-1.1.7-1.2.1
sqlite-3.3.6-2
sqlite-3.3.6-2

Also, why it is listing 2 entries of sqlite-3.3.6-2 here?

Best Answer

  1. rpm -q --requires somepackagehere

  2. One is the i?86 package, the other is the x86_64 package.

Related Topic