RPMLUA(1)
π rpmlua β the RPM Lua interpreter, bestie edition π
okay so real talk: this is the manual page for rpmlua, aka section 1 of the General Commands Manual, and it's literally your backstage pass to the Lua interpreter that lives inside RPM. she's giving "tiny tool, main character energy" β¨
πΈ NAME πΈ
rpmlua β the RPM Lua interpreter πβ¨
π SYNOPSIS π
rpmlua [options] [LUA_SCRIPT] [-- ARG ...]
like, that's the whole vibe. options first, then maybe a script, then -- and whatever args you wanna yeet at it π
π¦ DESCRIPTION π¦
She runs the RPM internal Lua interpreter. that's it, that's the job π
not me dropping the most important lore rn: indexes start at1in Lua, so the program name is atarg[1]instead of the more customary index zero. yes bestie, it's off-by-one from what you'd expect β that's just how Lua does it, no cap π
π ARGUMENTS π
- LUA SCRIPT β the Lua script, obviously. your moment to shine π
- ARG β options and arguments that get passed along to
SCRIPT_FILE. and heads up:rpmluastops processing at--, so everything after that divider belongs to your script, not to rpmlua π
β¨ OPTIONS β¨
-i,--interactiveβ run an interactive session after executing the optional script or statement. so you can do your thing and then keep the conversation going π«Ά--opts=OPTSTRINGβ dogetopt(3)option processing on the passed arguments, according to OPTSTRING. yes, actual getopt energy. iconic π§-e "STATEMENT",--execute "STATEMENT"β execute a Lua statement before executing the optional script. little pregame statement, love that for you π
π EXIT STATUS π
On success you get 0. anything else is a nonzero failure code β so if the shell is being dramatic, that's your cue π₯
π EXAMPLES π
Run a script file. simple. elegant. slay:
rpmlua test.lua
Execute test.lua with option processing going on β look at her multitasking:
rpmlua --opts=ab:c args.lua -- 1 2 3 -c -b5
One single statement to compare rpm versions, no script file needed:
rpmlua -e "print(rpm.ver('1.0') < rpm.ver('2.0'))"
And the one where you just wanna vibe in a REPL:
rpmlua -i
π SEE ALSO π
and that's the whole page, bestie β written for RPM 6.1.0, dated 2026-08-20, and yeah the manual itself is literally named RPMLUA(1). go forth and interpret some Lua πβ¨
π¦ 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