rpmsort - Man Page

Sort input by RPM Package Manager (RPM) versioning

Synopsis

rpmsort [ FILE .​.​.​ ]

Description

rpmsort(1) sorts the content of the input files, and writes a sorted list to standard out - like sort(1), but aware of RPM versioning.​

Arguments

FILE

A text-file containing lines to sort.​ If FILE is omitted or - given, data is read from standard in and written to standard out.​

Options

rpmsort has no options.​

Exit Status

On success, 0 is returned, a nonzero failure code otherwise.​

Examples

echo -e '​rpm-4.​18.​0-3.​fc38.​x86_64\nrpm-4.​18.​0-1.​fc38.​x86_64'​ | rpmsort

  rpm-4​.18​.0-1​.fc38​.x86_64
  rpm-4​.18​.0-3​.fc38​.x86_64

See Also

rpm-version(7)

Referenced By

rpm-version(7).

2026-08-20 RPM 6.1.0