rpm/tools
Robbie Harwood 4c6052c42a Add rpmsort utility for sorting RPM versions
rpmsort(8) is intended for use in shell scripts.  sort(1) is not RPM
versioning-aware, and attempting to work around that is fraught.
Instead, provide a wrapper around rpmvercmp() using qsort().

Fedora's grub2 has carried a version of this since 2015, and a more
complex version was also part of the grubby project (provided at
/usr/libexec/grubby/rpm-sort) since 2018.  This version has been
simplified and adapted to the RPM project.

Also-authored-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
2022-11-25 10:38:42 +01:00
..
elfdeps.c Remove superflous include of non-standard <error.h> 2022-04-13 09:25:10 +03:00
rpmdeps.c Set program name centrally from rpmcliInit() 2022-03-25 10:23:37 +02:00
rpmgraph.c Try globs literally when there are no matches 2022-09-20 15:01:05 +03:00
rpmlua.c Set program name centrally from rpmcliInit() 2022-03-25 10:23:37 +02:00
rpmsort.c Add rpmsort utility for sorting RPM versions 2022-11-25 10:38:42 +01:00
rpmuncompress.c Fix unterminated macros in rpmuncompress 2022-06-27 08:47:36 +03:00