| Summary: | Split binaries and libraries not requiring RPM DB out from the main rpm package | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vratislav Podzimek <vpodzime> |
| Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | ffesti, jzeleny, novyjindrich, packaging-team-maint, pknirsch, pmatilai |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-11 13:10:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Vratislav Podzimek
2013-12-11 12:22:46 UTC
Erm... the act of installing ANY packages with rpm has to initialize an rpmdb if it doesn't already exist. Nothing to do with the rpm package (whether it initializes something on install would've been easy enough to check) There are no easy savings possible here: rpm2cpio requires librpm which requires libdb and all, plus the librpmio which requires the big bad NSS. And initializing the rpm libraries does need the configuration bits as well. The translations take some amount of space of course, but they are just as much for the libraries as they are for the binaries. Rearranging the packaging somewhat would be possible, but in the end it'd drag practically all the same things in, aint worth the trouble trying to save a few tens of kilos. The single actually BIG thing in rpm package is the upstream changelog, weighing at > 700kB which is roughly a third of the entire package size. Installing with --excludedocs helps with that. Thanks for the explanation. I guess lorax should just leave all the executables from the RPM package in place. Does yum export the rpm's --excludedocs option somehow via its API? Yum exports it as a config option at least, look for 'tsflags' in yum.conf manual. Nice, thanks! And I see lorax already sets it. [1] [1] https://git.fedorahosted.org/cgit/lorax.git/tree/src/sbin/lorax#n232 |