[Rpm-maint] [rpm-software-management/rpm] Add a rpm-lua(7) man page for the embedded Lua interpreter (PR #3809)

Panu Matilainen notifications at github.com
Wed Jun 18 12:46:48 UTC 2025


@pmatilai commented on this pull request.



> +	```
+
+*unsetenv(*_name_*)*
+	Remove a variable _name_ from environment. See also *unsetenv*(3).
+
+	Example:
+	```
+	posix.unsetenv('HOME')
+	```
+
+# Extending and customizing
+On initialization, RPM executes a global _init.lua_ Lua initialization script,
+typically located in _/usr/lib/rpm/init.lua_. This can be used for performing
+custom runtime configuration of RPM and adding global functions and variables
+to the RPM Lua environment without recompiling RPM.
+

It's a fair point, something that hasn't been covered in any docs so far. The problem is we're not really ready for that discussion because the implementation doesn't match what we want.

But okay, we can state something to the effect of "during build the global state is preserved, but that install scriptlets should not expect to share state with other scriptlets".

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3809#discussion_r2154509939
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3809/review/2939064265 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250618/056e5b47/attachment.htm>


More information about the Rpm-maint mailing list