how can i know what arguments are passed to a pre install rpm script?

hi,

i have an rpm, and i am looking at the presinstall script. i can see it takes in an argument, but what i do not know is how this argument is passed to the script? is there something that calls the preinstall script? i thought the preinstall script was the first thing executed.

thanks

As far as I recall only one argument can be passed - a count of the package versions.

See Fedora - Defining installation scripts

1 Like

excellent. that explains it, we're passing in 1, and i did not know why, now i do.

thanks