> Not knowing anything about how RPM works internally, can an rpm install
> run a script before installing any files? That could easily check for
> free space..
Yes. You can run a pre-install script. However, since
this script must be embedded in the spec file (can't be
a separate file since you haven't copied anything to the
target machine), it would be quite tricky to generate the
directory size list at RPM build time.
Following this route leads to "make a small single-file
RPM that installs the installation script for the main RPM".
Beginning to sound like a lot of Windows' installers (where
setup.exe just copies the main install engine).
But, yes, embedding this functionality in RPM itself
is the way to go.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!