开发者

View RPM scripts with rpm --scripts -qp

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


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.


Try with following command:

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

You can see the script contents

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜