Javascript interpreter for Linux
You could use NodeJS. It has a child_process module that can run arbitrary commands. E.G. child_process.spawn()
When your script is finished you run it like this:
node myscript.js
It's possible to define JS functions that will call your C/C++ functions that could use system()
call, executing some linux commands.
Spider Monkey's way: https://developer.mozilla.org/en/JavaScript_C_Engine_Embedder's_Guide#Native_functions
Google V8 is also an option: http://code.google.com/apis/v8/embed.html#accesssors
So you would have
system('rpm -i myapp.rpm');system('rpm -i myapp2.rpm');
or perhaps
install('myapp.rpm');install('myapp2.rpm');