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?"
Asked
Active
Viewed 632 times
0

rkb
- 3,442
- 19
- 25

meet patel
- 181
- 1
- 2
- 17
1 Answers
0
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.

Forrest
- 1,370
- 9
- 20
-
ya that's right but excet syntax for error message and it print on verbose time only rpm -v .. otherwise not print. – meet patel Dec 06 '12 at 05:34
-
go to this link my requirement . http://stackoverflow.com/questions/13698832/rpm-build-how-to-print-error-message-at-rpm-install-at-client – meet patel Dec 06 '12 at 05:57