0
votes
1answer
57 views

Extract a single directory from rpm

I'm able to extract individual file rpm rpm by: rpm2cpio rpm_name | cpio -ivd ./a/b/c/README I need to extract the whole /a/b/c/ directory (using ./a/b/c/ in above command doesn't works)? How it ...
1
vote
1answer
1k views

Is it possible to get user's input during installation of rpm?

Is it possible to get input from a user during an rpm installation? I have a script that works by itself (taking input from a user and doing actions) but when run as part of the post install of an rpm ...
0
votes
2answers
3k views

Get the process id from ps -ef grep (or Stop an application before removing it)

I have an rpm and I want on uninstall to check if my application is running and if it is stop it before running the uninstall. My service runs under a specific user. How can I do this using bash in ...
0
votes
1answer
503 views

rpm spec file with 'cat' problem

Im writing spec file in which i want to place script to run process from init.d directory. Here it is a part of SPEC file: %prep %{__cat} <<EOF > myapp.run prog="IMG APP BACKEND" ...