summaryrefslogtreecommitdiffstats
path: root/rpmmodule/t
blob: e5359dde1ad3e7355d3b07f0e85fbbd6b18e3927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

import rpm
import os

db = rpm.opendb()

for n in db.findbyprovides('libc.so.6'):
     print "match:", db[n]['name']

for n in db.findbyname('glibc'):
     print "match:", db[n]['name']

for n in db.findbyfile('/bin/bash'):
     print "match:", db[n]['name']