rpmdeps: Generate RPM Package Dependencies
rpmdeps {-P|--provides} {-R|--requires} {--rpmfcdebug} FILE ...
Option | Description |
---|---|
-P, --provides | Print the provides |
-R, --requires | Print the requires |
--recommends | Print the recommends |
--suggests | Print the suggests |
--supplements | Print the supplements |
--enhances | Print the enhances |
--conflicts | Print the conflicts |
--obsoletes | Print the obsoletes |
--alldeps | Print all the dependencies |
rpmdeps --alldeps --define '__font_provides ${nil}' <file>
/usr/lib/rpm/rpmdeps --alldeps --define '__font_provides ${nil}' /usr/lib/NetworkManager/nm-dhcp-helper
GNU/hello
의 바이너리$ /usr/lib/rpm/rpmdeps --alldeps --define '__font_provides ${nil}' ./hello
0 ./hello
R libc.so.6(GLIBC_2.17)(64bit)
R libc.so.6(GLIBC_2.34)(64bit)
R ld-linux-aarch64.so.1(GLIBC_2.17)(64bit)
R libc.so.6()(64bit)
R ld-linux-aarch64.so.1()(64bit)
R rtld(GNU_HASH)
provides = {}
requires = {}
file_re = re.compile(r'\s+\d+\s(.*)')
file_re = re.compile(r'\s+(\S)\s+(.*)')
r = re.compile(r'[<>=]+\s+\S*')