RPMSORT(1)
π RPMSORT(1) π
okay bestie, so this is rpmsort(1) from the General Commands Manual, and honestly? it's giving "sort(1) but it actually gets RPM versions" and I'm obsessed π¦
β¨ NAME β¨
rpmsort β sort input by RPM Package Manager (RPM) versioning π
π SYNOPSIS π
rpmsort [ FILE ... ]
πΈ DESCRIPTION πΈ
so like, rpmsort(1) takes the content of whatever input files you give it, sorts that content, and writes a sorted list out to standard out. think of it as sort(1), except it's aware of RPM versioning β so it doesn't do the chaotic thing where rpm-4.18.0-3 comes before rpm-4.18.0-1 and ruins your whole day π
π«Ά ARGUMENTS π«Ά
FILEβ a text-file full of lines that you want sorted. and if you omitFILE, or you literally just pass-instead, then the data gets read from standard in and written to standard out. main character energy, she's flexible β¨
π OPTIONS π
rpmsort has no options. none. zero. she said "I'm simple, I'm flawless, I don't need flags" πβ¨ literally iconic behaviour, no cap.
π EXIT STATUS π
on success, 0 is returned. otherwise you get a nonzero failure code. so if it's not 0, something went sideways bestie, no need to investigate further than that π
π₯ EXAMPLES π₯
okay watch this, actual magic:
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 how -1 came out on top and -3 went below? yes ma'am. that's the whole point. sort(1) could NEVER ππ«Ά
π SEE ALSO π
rpm-version(7)β go read it, iykyk πβ¨
and that's the whole page, bestie!! this was RPMSORT(1) from the General Commands Manual, and the footer says it's RPM 6.1.0 dated 2026-08-20 β so like, yeah, that's your version and your date, mwah π now go sort something with RPM awareness, periodt πππ¦
π¦ where this page comes from
- ubuntu stonking: rpm 6.1.0-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms