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 omit FILE, 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 🌈


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