rpm question

JD jd1008 at gmail.com
Sun Jun 10 00:23:50 UTC 2012


On 06/09/2012 04:08 PM, Richard Shaw wrote:
> It looks like if you want package level dependencies then you need to
> use repoquery, but it will also list dependencies for all available
> packages, not just what you have installed.
>
> $ sudo repoquery --whatrequires libmapi
> pam_mapi-0:0.1.1-1.fc16.i686
> pam_mapi-0:0.1.1-1.fc16.x86_64
> php-mapi-0:7.0.2-1.fc16.x86_64
> php-mapi-0:7.0.7-1.fc16.x86_64
> python-MAPI-0:7.0.2-1.fc16.x86_64
> python-MAPI-0:7.0.7-1.fc16.x86_64
> zarafa-archiver-0:7.0.2-1.fc16.x86_64
> zarafa-archiver-0:7.0.7-1.fc16.x86_64
> zarafa-client-0:7.0.2-1.fc16.i686
> zarafa-client-0:7.0.2-1.fc16.x86_64
> zarafa-client-0:7.0.7-1.fc16.i686
> zarafa-client-0:7.0.7-1.fc16.x86_64
> zarafa-contacts-0:7.0.7-1.fc16.x86_64
> zarafa-dagent-0:7.0.2-1.fc16.x86_64
> zarafa-dagent-0:7.0.7-1.fc16.x86_64
> zarafa-devel-0:7.0.2-1.fc16.i686
> zarafa-devel-0:7.0.2-1.fc16.x86_64
> zarafa-devel-0:7.0.7-1.fc16.i686
> zarafa-devel-0:7.0.7-1.fc16.x86_64
> zarafa-gateway-0:7.0.2-1.fc16.x86_64
> zarafa-gateway-0:7.0.7-1.fc16.x86_64
> zarafa-ical-0:7.0.2-1.fc16.x86_64
> zarafa-ical-0:7.0.7-1.fc16.x86_64
> zarafa-indexer-0:7.0.7-1.fc16.x86_64
> zarafa-monitor-0:7.0.2-1.fc16.x86_64
> zarafa-monitor-0:7.0.7-1.fc16.x86_64
> zarafa-spooler-0:7.0.2-1.fc16.x86_64
> zarafa-spooler-0:7.0.7-1.fc16.x86_64
> zarafa-utils-0:7.0.2-1.fc16.x86_64
> zarafa-utils-0:7.0.7-1.fc16.x86_64
>
> You can add the "--installed" option but then it would produce no
> output for me since I don't have libmapi installed.
>
> Richard
Thanx for bringing repoquery to the foreground.
Interesting that when a packages is installed,
and --whatrequires returns negative, rpm -e
will expose other packages that depend on the
libs a package has installed.
Seems to me that --whatrequires should expose
all types of dependencies.




More information about the users mailing list