Query regarding RPM package installation
Hi all
I was trying to change loaction of RPM databases. Default location of all RPM databases is /var/lib/rpm. I successfully achieved it by having file /etc/macros containing overridden attribute %_dbpath pointing to /etc/rpmdb After this all databases of RPM are getting created in /etc/rpmdb location. Now, when i install rpm-4.4.2.3-9.el5.x86_64.rpm package, its database gets created in /etc/rpmdb but empty folder 'rpm' gets created in /var/lib I want to avoid this 'rpm' folder creation. Anyone has any idea about how i can stop creation of this folder when i install rpm-4.4.2.3-9.el5.x86_64.rpm package ? Thanks Siddhesh |
The rpm .spec file probably has instructions to create the /var/lib/rpm folder if it doesn't exist. You would probably have to get the source rpm (.src.rpm) and install it. That puts the .tar.gz contaings the files for the rpm in /usr/src/redhat/SOURCES, and the .spec file in /usr/src/redhad/SPEC.
Try editing the .spec file to change the location of the rpmdb, then compile a new rpm-4.4.2.3-9.el5.x86_64.rpm to install. |
All times are GMT -5. The time now is 05:33 PM. |