LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2009, 03:25 AM   #1
cddhesh
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 06-26-2009, 10:28 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-root rpm package installation D-a-a-n Linux - Software 7 04-08-2009 12:52 PM
rpm package installation pelagic Linux - Software 3 09-09-2003 02:22 AM
RPM package installation problems nanabaffoe Linux - Software 7 07-18-2003 07:06 AM
rpm package installation DaDdY SnEb Linux - Newbie 3 06-19-2002 10:52 AM
RPM Package Installation Pimple Linux - General 5 03-15-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration