1RPMLUA(8)                                                            RPMLUA(8)
2
3
4

NAME

6       rpmlua - RPM Lua interpreter
7

SYNOPSIS

9       rpmlua  [{-e|--execute} “STATEMENT”] [{-i|--interactive}] [SCRIPT_FILE]
10       [arg1 ...]
11

DESCRIPTION

13       Run RPM internal Lua interpreter.
14
15       Note: indexes start at 1 in Lua, so the program name is at  arg[1]  in‐
16       stead of the more customary index zero.
17
18       -i|--interactive
19              Run  an  interactive  session after executing optional script or
20              statement.
21
22       –opts=OPTSTRING
23              Perform getopt(3) option processing on the passed arguments  ac‐
24              cording to OPTSTRING.
25
26       -e|--execute
27              Execute a Lua statement before executing optional script.
28

EXAMPLES

30       Execute test.lua script file:
31
32              rpmlua test.lua
33
34       Execute args.lua script file with option processing:
35
36              rpmlua –opts=ab:c args.lua – 1 2 3 -c -b5
37
38       Execute single statement to compare rpm versions:
39
40              rpmlua -e “print(rpm.ver(`1.0') < rpm.ver(`2.0'))”
41
42       Run an interactive session:
43
44              rpmlua -i
45

SEE ALSO

47       lua(1), popt(3), getopt(3), rpm(8)
48
49       http://www.rpm.org/ <URL:http://www.rpm.org/>
50

AUTHORS

52              Panu Matilainen <pmatilai@redhat.com>
53
54
55
56                               17 December 2021                      RPMLUA(8)
Impressum