[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
api description in maximum-rpm too old?
- From: Peeter Vois <Peeter Vois mail ee>
- To: rpm-list redhat com
- Subject: api description in maximum-rpm too old?
- Date: Wed, 7 Aug 2002 09:42:58 +0300
Hi,
I am new in this list. I was reading the maximum-rpm documents and header
files and searched a little in this list archive but no big success for
now.
So, I made a little program using gtk2 only for displaying installed
packages, theyr info, ... . Also this program can display dependencies:
which package reguires selected package. And allows to uninstall all
packages in this dependency tree. This program is quite cool already but
the way I made it is not very promising and is dangerous: I used popen to
execute rpm with flags and reading the output of rpm through pipe. So I
decided investigate the rpmlib. I took the maximum-rpm and saw that
reading out all installed packages is quite easy ... but it does not
compile and link and looks like there is no more supported the way how to
parse the rpm database. The functions:
rpmdbFirstRecNum(db),
rpmdbGetRecord(db,offset),
rpmdbNextRecNum( db, offset )
will not exist anymore. Looks like now there are iterators for this
purpose but the cowork of many functions stays quite mystery.
Therefore I'm asking: How can I read the entries in database? Or does
anyone have some source file from where I can get idea how to read the
database?
Any kind of help is welcome.
Best Regards ...
Peeter Vois
http://my.tele2.ee/vois
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]