Debian Codegraph @

upstream/debian-unstable/man1/rpmlua.1

raw
1 .\" Generated by scdoc 1.11.4
2 .\" Complete documentation for this program is not available as a GNU info page
3 .ie \n(.g .ds Aq \(aq
4 .el .ds Aq '
5 .nh
6 .ad l
7 .\" Begin generated content:
8 .TH "RPMLUA" "1" "2026-04-10" "RPM 6.0.1"
9 .PP
10 .SH NAME
11 rpmlua - RPM Lua interpreter
12 .PP
13 .SH SYNOPSIS
14 \fBrpmlua\fR [options] [\fILUA_SCRIPT\fR] [-- \fIARG\fR .\&.\&.\&]
15 .PP
16 .SH DESCRIPTION
17 Run RPM internal Lua interpreter.\&
18 .PP
19 Note: indexes start at 1 in Lua, so the program name is at arg[1] instead
20 of the more customary index zero.\&
21 .PP
22 .SH ARGUMENTS
23 \fILUA SCRIPT\fR
24 .RS 4
25 A Lua script.\&
26 .PP
27 .RE
28 \fIARG\fR
29 .RS 4
30 Options and arguments to be passed to \fISCRIPT_FILE\fR.\&
31 \fBrpmlua\fR stops processing at \fB--\fR.\&
32 .PP
33 .RE
34 .SH OPTIONS
35 \fB-i\fR,
36 \fB--interactive\fR
37 .RS 4
38 Run an interactive session after executing optional script or
39 statement.\&
40 .PP
41 .RE
42 \fB--opts\fR=\fIOPTSTRING\fR
43 .RS 4
44 Perform \fBgetopt\fR(3) option processing on the passed arguments
45 according to \fIOPTSTRING\fR.\&
46 .PP
47 .RE
48 \fB-e\fR "\fISTATEMENT\fR",
49 \fB--execute\fR "\fISTATEMENT\fR"
50 .RS 4
51 Execute a Lua statement before executing optional script.\&
52 .PP
53 .RE
54 .SH EXIT STATUS
55 On success, 0 is returned, a nonzero failure code otherwise.\&
56 .PP
57 .SH EXAMPLES
58 \fBrpmlua test.\&lua\fR
59 .RS 4
60 Execute test.\&lua script file.\&
61 .PP
62 .RE
63 \fBrpmlua --opts=ab:c args.\&lua -- 1 2 3 -c -b5\fR
64 .RS 4
65 Execute args.\&lua script file with option processing.\&
66 .PP
67 .RE
68 \fBrpmlua -e "print(rpm.\&ver('\&1.\&0'\&) < rpm.\&ver('\&2.\&0'\&))"\fR
69 .RS 4
70 Execute single statement to compare rpm versions.\&
71 .PP
72 .RE
73 \fBrpmlua -i\fR
74 .RS 4
75 Run an interactive session.\&
76 .PP
77 .RE
78 .SH SEE ALSO
79 \fBlua\fR(1), \fBpopt\fR(3), \fBgetopt\fR(3), \fBrpm\fR(8) \fBrpm-lua\fR(7)
80 .PP
81 \fBhttp://www.\&rpm.\&org/\fR