This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
rpm [2014/11/21 18:14] k2patel [General RPM Command] |
rpm [2016/05/15 00:40] k2patel [Custom Built RPM] |
||
---|---|---|---|
Line 232: | Line 232: | ||
[[http://rpm.org/wiki/Docs#PackagerDocumentation | RPM Official]] | [[http://rpm.org/wiki/Docs#PackagerDocumentation | RPM Official]] | ||
+ | ==== Scriptlets ==== | ||
+ | |||
+ | Normally, rpm has scriptlets inside the spec file that are | ||
+ | ran at install time. These are: | ||
+ | <code bash> | ||
+ | %pre - Run before rpm files are installed. | ||
+ | %post - Run after rpm files are installed. | ||
+ | %preun - Run before rpm files are erased. | ||
+ | %postun - Run after rpm files are erased. | ||
+ | %triggerin - Install trigger. | ||
+ | %triggerun - uninstall trigger | ||
+ | %triggerpostun - postuninstall trigger. | ||
+ | </code> | ||
+ | The scripts are normally bash scripts, but you can change the interpreter | ||
+ | with the -p option. | ||
+ | |||
+ | Also, as they are bash scripts you can call external scripts from these. | ||
==== General RPM Command ==== | ==== General RPM Command ==== | ||
Line 838: | Line 855: | ||
Also see Packaging/RPMMacros and RPM Guide chapter 9. | Also see Packaging/RPMMacros and RPM Guide chapter 9. | ||
</code> | </code> | ||
+ | |||
+ | ==== Custom Built RPM ==== | ||
+ | |||
+ | [[http://rpm.k2patel.in|my repository]] |