summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 7703d5b3e2fa479a44f895c7f8743a5509455978 (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
37
38
39
40
41
42
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 27

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

# DNF on Fedora 25

    $ time dnf repomanage --old --keep 5 .
    ...
    real	0m0,269s

# YUM on RHEL / CentOS

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

# PHP script

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