Frage

i have problem regarding the stderr and stdout message print on the client console for specified costume message on specified costume condition .i want to put it on spec file or where?

"like for example if i have build rpm xyz.rpm when after uninstall i want to check if service of xyz is stop then and then it should be uninstall otherwise give an error message and stop uninstall.i have one more customization if i use -v then it should display otherwise not.is it possible?"

War es hilfreich?

Lösung

Per rpm.org you can use the %preun script to run any normal shell commands prior to the uninstall occurring, so you could stop the service, or abort with an error.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top