.\" Generated by scdoc 1.11.4 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "RPMLUA" "1" "2026-01-08" "RPM 6.0.1" .PP .SH NAME rpmlua - RPM Lua interpreter .PP .SH SYNOPSIS \fBrpmlua\fR [options] [\fILUA_SCRIPT\fR] [-- \fIARG\fR .\&.\&.\&] .PP .SH DESCRIPTION Run RPM internal Lua interpreter.\& .PP Note: indexes start at 1 in Lua, so the program name is at arg[1] instead of the more customary index zero.\& .PP .SH ARGUMENTS \fILUA SCRIPT\fR .RS 4 A Lua script.\& .PP .RE \fIARG\fR .RS 4 Options and arguments to be passed to \fISCRIPT_FILE\fR.\& \fBrpmlua\fR stops processing at \fB--\fR.\& .PP .RE .SH OPTIONS \fB-i\fR, \fB--interactive\fR .RS 4 Run an interactive session after executing optional script or statement.\& .PP .RE \fB--opts\fR=\fIOPTSTRING\fR .RS 4 Perform \fBgetopt\fR(3) option processing on the passed arguments according to \fIOPTSTRING\fR.\& .PP .RE \fB-e\fR "\fISTATEMENT\fR", \fB--execute\fR "\fISTATEMENT\fR" .RS 4 Execute a Lua statement before executing optional script.\& .PP .RE .SH EXIT STATUS On success, 0 is returned, a nonzero failure code otherwise.\& .PP .SH EXAMPLES \fBrpmlua test.\&lua\fR .RS 4 Execute test.\&lua script file.\& .PP .RE \fBrpmlua --opts=ab:c args.\&lua -- 1 2 3 -c -b5\fR .RS 4 Execute args.\&lua script file with option processing.\& .PP .RE \fBrpmlua -e "print(rpm.\&ver('\&1.\&0'\&) < rpm.\&ver('\&2.\&0'\&))"\fR .RS 4 Execute single statement to compare rpm versions.\& .PP .RE \fBrpmlua -i\fR .RS 4 Run an interactive session.\& .PP .RE .SH SEE ALSO \fBlua\fR(1), \fBpopt\fR(3), \fBgetopt\fR(3), \fBrpm\fR(8) \fBrpm-lua\fR(7) .PP \fBhttp://www.\&rpm.\&org/\fR