문제

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?"

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top