---
name: "rpmsort"
section: "1"
platform: "linux"
package: "rpm-tools"
version: "6.0.1-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/rpmsort"
---

# rpmsort(1)

Sort input by RPM Package Manager (RPM) versioning

## NAME

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

## SYNOPSIS

**rpmsort** \[ *FILE* ... \]

## DESCRIPTION

[**rpmsort**(1)](/rpmsort/1.md) sorts the content of the input files, and writes a sorted list to standard out - like [**sort**(1)](/sort/1.md), 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)](/rpm-version/7.md)
