1RPMLUA(8) RPMLUA(8)
2
3
4
6 rpmlua - RPM Lua interpreter
7
9 rpmlua [{-e|--execute} “STATEMENT”] [{-i|--interactive}] [SCRIPT_FILE]
10 [arg1 ...]
11
13 Run RPM internal Lua interpreter.
14
15 -i|--interactive
16 Run an interactive session after executing optional script or
17 statement.
18
19 –opts=OPTSTRING
20 Perform getopt(3) option processing on the passed arguments ac‐
21 cording to OPTSTRING.
22
23 -e|--execute
24 Execute a Lua statement before executing optional script.
25
27 Execute test.lua script file:
28
29 rpmlua test.lua
30
31 Execute args.lua script file with option processing:
32
33 rpmlua –opts=ab:c args.lua – 1 2 3 -c -b5
34
35 Execute single statement to compare rpm versions:
36
37 rpmlua -e “print(rpm.ver(`1.0') < rpm.ver(`2.0'))”
38
39 Run an interactive session:
40
41 rpmlua -i
42
44 lua(1)
45 popt(3),
46 getopt(3),
47 rpm(8),
48
49 http://www.rpm.org/ <URL:http://www.rpm.org/>
50
52 Panu Matilainen <pmatilai@redhat.com>
53
54
55
56 17 December 2021 RPMLUA(8)