rpmsort(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | OPTIONS | EXIT STATUS | EXAMPLES | SEE ALSO | COLOPHON

RPMSORT(1)               General Commands Manual               RPMSORT(1)

NAME         top

       rpmsort - Sort input by RPM Package Manager (RPM) versioning

SYNOPSIS         top

       rpmsort [ FILE ... ]

DESCRIPTION         top

       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         top

       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         top

       rpmsort has no options.

EXIT STATUS         top

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

EXAMPLES         top

       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         top

       rpm-version(7)

COLOPHON         top

       This page is part of the rpm (RPM Package Manager) project.
       Information about the project can be found at 
       ⟨https://github.com/rpm-software-management/rpm⟩.  It is not known
       how to report bugs for this man page; if you know, please send a
       mail to [email protected].  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/rpm-software-management/rpm.git⟩ on
       2026-01-16.  (At that time, the date of the most recent commit
       that was found in the repository was 2026-01-15.)  If you discover
       any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a
       mail to [email protected]

RPM 6.0.90                      2026-01-16                     RPMSORT(1)

Pages that refer to this page: rpmsort(1)rpm-version(7)