RPMLUA(8)

πŸ“¦
version 4.20.1 Β· 3 versions
, in debian trixie, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing

πŸ’– NAME πŸ’–

rpmlua β€” the RPM Lua interpreter, aka the little scripty bestie that lives inside RPM and lets u talk to it directly πŸ¦‹


🌸 SYNOPSIS 🌸

rpmlua [{-e|--execute} "STATEMENT"] [{-i|--interactive}] [SCRIPT_FILE]
[arg1 ...]

✨ DESCRIPTION ✨

okay so basically? u run the RPM internal Lua interpreter. that's it. that's the vibe. no cap πŸ’…

🚨 super important lore alert: indexes in Lua start at 1, not 0. so the program name lives at arg[1] instead of the more customary index zero. yes bestie, it's giving chaotic but it's just how Lua rolls. write it down. memorize it. periodt.

here's the flag rundown, every single one, no skipping πŸ”₯

  • -i, --interactive β€” runs u a whole interactive session, and it does this after executing the optional script or statement. so u get the script run first, then the cozy chat session. obsessed 🫢
  • --opts=OPTSTRING β€” does getopt(3) option processing on the arguments u passed, following whatever OPTSTRING u gave it. that's the whole job ✨
  • -e, --execute β€” executes a Lua statement before executing the optional script. little pre-game statement, if u will 😌

🌈 EXAMPLES 🌈

run the test.lua script file:

rpmlua test.lua

run the args.lua script file, but with option processing turned on:

rpmlua --opts=ab:c args.lua -- 1 2 3 -c -b5

run one single statement to compare rpm versions:

rpmlua -e "print(rpm.ver(`1.0') < rpm.ver(`2.0'))"

and if u just wanna vibe in an interactive session:

rpmlua -i

see? easy. iconic. u got this πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘


πŸŽ€ AUTHORS πŸŽ€

Panu Matilainen <pmatilai@redhat.com> β€” the actual main character who made this happen 🌟


and that's a wrap, bestie!! this whole page is from RPMLUA(8), dated 17 December 2021 πŸ’– go forth and rpmlua responsibly, mwah 🧚✨