10. Script packages

A script package is a special package that does not contain any files. Its sole contents are a single script, which is given in the specfile by the special %script section. The %script gets executed when LPMtool installs the package, but the package does not really get installed. The script gets executed, but the package information does not get added to the system's package database. Furthermore:

Script packages do not differ from normal packages in all other respects. Script packages may be signed, using the --sign or the --repository option to lpbuild. Script mechanisms allow trusted package repositories to provide signed scripts to be executed as part of installation of a larger bundle of packages.


When script packages are specified together with a list of other packages to install, the scripts get executed after the remaining packages get installed in the normal fashion. lpm installs all non-script packages first, then proceeds to run the script packages.