rpm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rpm [2013/12/05 16:53] – [RPM Common Command] k2patel | rpm [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== RPM ====== | ====== RPM ====== | ||
| + | |||
| + | * [[ Python packages to rpm ]] | ||
| Package management system few tips / trick to build / modify / work with packages. \\ | Package management system few tips / trick to build / modify / work with packages. \\ | ||
| Line 141: | Line 143: | ||
| </ | </ | ||
| + | ==== Something i come across ==== | ||
| + | If you wanna override marco from OS you can define value at '' | ||
| + | <code bash> | ||
| + | %define _mandir /usr/man | ||
| + | </ | ||
| ==== Sample RPM ==== | ==== Sample RPM ==== | ||
| <code bash | sample.spec> | <code bash | sample.spec> | ||
| Line 232: | Line 239: | ||
| [[http:// | [[http:// | ||
| + | ==== 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 | ||
| + | %preun | ||
| + | %postun | ||
| + | | ||
| + | %triggerun | ||
| + | %triggerpostun | ||
| + | </ | ||
| + | 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 239: | Line 263: | ||
| </ | </ | ||
| + | |||
| + | ==== Error on Building ==== | ||
| + | === module: command not found === | ||
| + | Try running following command and then execute rpmbuild will resolve the issue. | ||
| + | <code bash> | ||
| + | source / | ||
| + | </ | ||
| ==== MOCK ==== | ==== MOCK ==== | ||
| Line 831: | Line 862: | ||
| Also see Packaging/ | Also see Packaging/ | ||
| </ | </ | ||
| + | |||
| + | ==== Custom Built RPM ==== | ||
| + | |||
| + | [[http:// | ||
rpm.1386262429.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
