Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View RPM scripts with rpm --scripts -qp

Tags:

linux

When I run rpm -qlp I get the file contents of the RPM as you can see below, but when I run rpm --scripts -qp CBS0.0.0_10.0.i386.rpm I get the scripts' contents, but not their filename.

My question is why can't I see the script names in the RPM contents (ie, where does the script s come from?)

$ rpm -qlp CS0.0.0_10.0.i386.rpm

/home/thy_diff/rt
/home/thy_diff/rt/Cerse-zip
/home/thy_diff/rt/Configure_rht.properties
/home/thy_diff/rt/UFE_Install.sh
/home/thy_diff/M_client
/home/thy_diff/M_client/Crse-CLIENT.zip
/home/thy_diff/M_client/Configure_client.properties
/home/thy_diff/M_client/UF_Install.sh
like image 584
jon Avatar asked Apr 11 '11 04:04

jon


1 Answers

AFAIK scripts are part of RPM package meta-data, there are no files for scripts. The commands of scripts are written directly into spec-file just next to other meta-data like "description" or "license".

For example, see here the %post section. It contains a script of a single command. I believe all other scripts are written just the same.

like image 66
Oleg Andriyanov Avatar answered Sep 28 '22 22:09

Oleg Andriyanov