Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rpm: change install directory

Status
Not open for further replies.

rhymejerky

Programmer
Nov 30, 2004
23
US
Hi,

I have a .src.rpm file and did a rpm -ivh to it. It creates a spec file as well as other tar file. If I run rpm -ivh again on the created binary, the resulted files are put into the default location in /etc. Is there a way to change /etc to somewhere else? I know I need to edit the spec file, but variable that looks remotely closed is the _datadir in

%configure --datadir="%{_datadir}/mysql" If I want to change it to say, "/somewhere/mysql. Can I just replace _datadir with it? What is the proper way to do this? Thanks in advance
 
Actually, I think _datadir is /var. You should find where _datadir is defined and change it there. When you find the definition the declaration of the variable for /etc should be close.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top