summaryrefslogtreecommitdiffstats
path: root/README.md
blob: e3c75aab6c2f09e8d366f2573d71feae4087fb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
rpminfo
=======

Experimental wrapper for librpm

For now, only expose

	int rpmvercmp(string evr1, string evr2);


Mostly a PoC build for fun because of

https://bugzilla.redhat.com/1537981
performance issue: dnf repomanage is really slow


Some benchmark results (find 15 old RPMs among 5000)

# DNF on Fedora

    $ time dnf repomanage --old --keep 5 .
    ...
    real	0m15,971s

# YUM on RHEL / CentOS

    $ time repomanage --old --keep 5 .
    ...
    real	0m5.519s

# PHP script

    $ time php repomanage.php --old --keep 5 .
    ...
    real	0m0,634s