rpmlua(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | ARGUMENTS | OPTIONS | EXIT STATUS | EXAMPLES | SEE ALSO | COLOPHON

RPMLUA(1)                General Commands Manual                RPMLUA(1)

NAME         top

       rpmlua - RPM Lua interpreter

SYNOPSIS         top

       rpmlua [options] [LUA_SCRIPT] [-- ARG ...]

DESCRIPTION         top

       Run RPM internal Lua interpreter.

       Note: indexes start at 1 in Lua, so the program name is at arg[1]
       instead of the more customary index zero.

ARGUMENTS         top

       LUA SCRIPT
           A Lua script.

       ARG
           Options and arguments to be passed to SCRIPT_FILE. rpmlua
           stops processing at --.

OPTIONS         top

       -i, --interactive
           Run an interactive session after executing optional script or
           statement.

       --opts=OPTSTRING
           Perform getopt(3) option processing on the passed arguments
           according to OPTSTRING.

       -e "STATEMENT", --execute "STATEMENT"
           Execute a Lua statement before executing optional script.

EXIT STATUS         top

       On success, 0 is returned, a nonzero failure code otherwise.

EXAMPLES         top

       rpmlua test.lua
           Execute test.lua script file.

       rpmlua --opts=ab:c args.lua -- 1 2 3 -c -b5
           Execute args.lua script file with option processing.

       rpmlua -e "print(rpm.ver('1.0') < rpm.ver('2.0'))"
           Execute single statement to compare rpm versions.

       rpmlua -i
           Run an interactive session.

SEE ALSO         top

       lua(1), popt(3), getopt(3), rpm(8) rpm-lua(7)

       http://www.rpm.org/ 

COLOPHON         top

       This page is part of the rpm (RPM Package Manager) project.
       Information about the project can be found at 
       ⟨https://github.com/rpm-software-management/rpm⟩.  It is not known
       how to report bugs for this man page; if you know, please send a
       mail to [email protected].  This page was obtained from the
       project's upstream Git repository
       ⟨https://github.com/rpm-software-management/rpm.git⟩ on
       2026-01-16.  (At that time, the date of the most recent commit
       that was found in the repository was 2026-01-15.)  If you discover
       any rendering problems in this HTML version of the page, or you
       believe there is a better or more up-to-date source for the page,
       or you have corrections or improvements to the information in this
       COLOPHON (which is not part of the original manual page), send a
       mail to [email protected]

RPM 6.0.90                      2026-01-16                      RPMLUA(1)

Pages that refer to this page: rpm-lua(7)rpm-macros(7)