How to list just binaries provided by rpm package?
hi
i'm studying package management, and just wondering is there any way i can check what binaries are provided by certain rpm package? For example, 'rpm -qd httpd' lists docfiles, 'rpm -qc httpd' lists config files and 'rpm -ql httpd' lists all files (total of 357 files). If there were patterns like *.so or *.html, i could have used grep. but given that binaries will don't have any extension or any kind of pattern, how will i know what binaries are provided by certain rpm package? Note: looked man page for rpm. has no such options. just hoping for any other way... Thanks. |
You could do something like
Code:
rpm -ql packagename|egrep "(${PATH//:/|}|exec)" Code:
rpm -ql packagename|egrep "(bin/|exec/) |
@unSpawn
Great!!! that did the job. i stick with second command. first command, if there is 'bin' or 'exec' in filename it is also displayed. but the second one does not. Code:
# rpm -ql httpd|egrep "(${PATH//:/|}|exec)" |
You're welcome. BTW with the last one you could skip one binary and use
Code:
rpm -ql coreutils|egrep -c "(bin/|exec/)" |
All times are GMT -5. The time now is 12:09 PM. |