Operating System - Linux
1748180 Members
4058 Online
108759 Solutions
New Discussion юеВ

Re: how to find out all dependencies of a rpm installed

 
SOLVED
Go to solution
vvsha
Frequent Advisor

how to find out all dependencies of a rpm installed

how to find out all dependencies of a rpm installed.

also how to find out all dependencies of a new rpm downloaded.

please help me on this, I am using RHEL 3
4 REPLIES 4
Alexander Chuzhoy
Honored Contributor
Solution

Re: how to find out all dependencies of a rpm installed

rpm -q --requires for installed rpm.

rpm -qp --requires for not installed rpm.

The command basically returns a list of files that must be on the system.

Then you can go over the list with this command:
"rpm -q --whatprovides " and it will return you the package name.
sandeep mathur
Respected Contributor

Re: how to find out all dependencies of a rpm installed

rpm -ivh for installation of that rpm package.

rpm -q for query.

rpm -v for verification.
skt_skt
Honored Contributor

Re: how to find out all dependencies of a rpm installed

Not exactly the answer u need. (u got it already).

Just related

To see what rpm installed a binary file and to trace which other files were installed by the same rpm. Just FYI :)

[root@tnela39n pam.d]# which ksh
/bin/ksh
[root@tnela39n pam.d]# rpm -qf /bin/ksh
pdksh-5.2.14-30.3
[root@tnela39n pam.d]# rpm -ql pdksh-5.2.14-30.3
/bin/ksh
/usr/bin/ksh
/usr/bin/pdksh
/usr/share/doc/pdksh-5.2.14
/usr/share/doc/pdksh-5.2.14/BUG-REPORTS
/usr/share/doc/pdksh-5.2.14/NEWS
/usr/share/doc/pdksh-5.2.14/NOTES
/usr/share/doc/pdksh-5.2.14/PROJECTS
/usr/share/doc/pdksh-5.2.14/README
/usr/share/doc/pdksh-5.2.14/etc
/usr/share/doc/pdksh-5.2.14/etc/ksh.kshrc
/usr/share/doc/pdksh-5.2.14/etc/profile
/usr/share/doc/pdksh-5.2.14/etc/sys_config.sh
/usr/share/man/man1/ksh.1.gz
/usr/share/man/man1/pdksh.1.gz
[root@tnela39n pam.d]#
Sitarama.H.N
Advisor

Re: how to find out all dependencies of a rpm installed

Please type the below commands for

rpm -Uvh Package name for Up gradation
rpm -e -nodefs Package name For Dependences
rpm -e Package name For Removing
rmp -Va Package name For verification