[CentOS] how to find out dependencies

Sun May 3 11:52:54 UTC 2009
Ned Slider <ned at unixmail.co.uk>

Jerry Geis wrote:
> At install I had Gnome and Not KDE.
> 
> doing rpm -qa | grep qt results in
> qt-3.3.6-23.el5
> qt4-4.2.1-1
> 
> How can I find out what package loaded the qt4 and qt?
> 

Easy way... 'yum erase qt4' and see what deps yum would like to remove.

For example:

# yum erase qt4
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package qt4.x86_64 0:4.2.1-1 set to be erased
--> Processing Dependency: qt4 >= 4.2 for package: skype
---> Package qt4.i386 0:4.2.1-1 set to be erased
--> Running transaction check
---> Package skype.i586 0:2.0.0.72-centos set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================================================
  Package                                       Arch 
                        Version 
            Repository                                         Size
=================================================================================================================================================================================================================
Removing:
  qt4                                           x86_64 
                        4.2.1-1 
            installed                                          18 M
  qt4                                           i386 
                        4.2.1-1 
            installed                                          17 M
Removing for dependencies:
  skype                                         i586 
                        2.0.0.72-centos 
            installed                                          19 M

Transaction Summary
=================================================================================================================================================================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       3 Package(s)

Is this ok [y/N]: n
Exiting on user Command
Complete!