rpmdeps

markyang92·2022년 11월 14일
0

linux (ubuntu/debian)

목록 보기
36/36

rpmdeps: Generate RPM Package Dependencies

rpmdeps {-P|--provides} {-R|--requires} {--rpmfcdebug} FILE ...
  • 설정한 FILE에 대한 package dependencies를 생성한다.
    • FILEElf32/Elf64에 대해 search 되고, script interpreter, or per-script dependencies, and the dependencies are printed to stdout
OptionDescription
-P, --providesPrint the provides
-R, --requiresPrint the requires
--recommendsPrint the recommends
--suggestsPrint the suggests
--supplementsPrint the supplements
--enhancesPrint the enhances
--conflictsPrint the conflicts
--obsoletesPrint the obsoletes
--alldepsPrint all the dependencies

rpmdeps 사용

  • 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*')
profile
pllpokko@alumni.kaist.ac.kr

0개의 댓글