---
name: "rpmlua"
section: "8"
platform: "linux"
package: "rpm"
version: "4.20.1+dfsg-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rpmlua/8"
---

# rpmlua(8)

RPM Lua interpreter

## NAME

rpmlua - RPM Lua interpreter

## SYNOPSIS

**rpmlua** \[{**-e\|--execute**} “**STATEMENT**”\] \[{**-i\|--interactive**}\] \[*SCRIPT\_FILE*\] \[arg1 ...\]

## DESCRIPTION

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.

- **-i\|--interactive**

  Run an interactive session after executing optional script or statement.

- **–opts=OPTSTRING**

  Perform [**getopt**(3)](/getopt/3.md) option processing on the passed arguments according to OPTSTRING.

- **-e\|--execute**

  Execute a Lua statement before executing optional script.

## EXAMPLES

Execute test.lua script file:

rpmlua test.lua

Execute args.lua script file with option processing:

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

Execute single statement to compare rpm versions:

rpmlua -e “print(rpm.ver(\`1.0') \< rpm.ver(\`2.0'))”

Run an interactive session:

rpmlua -i

## SEE ALSO

[**lua**(1)](/lua/1.md), [**popt**(3)](/popt/3.md), [**getopt**(3)](/getopt/3.md), [**rpm**(8)](/rpm/8.md)

**http://www.rpm.org/ \<URL:http://www.rpm.org/\>**

## AUTHORS

-

  ```
  Panu Matilainen <pmatilai@redhat.com>
  ```
