LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-28-2002, 12:19 AM   #1
hems
LQ Newbie
 
Registered: Nov 2002
Posts: 3

Rep: Reputation: 0
Building own RPM package


Hi,

I have been using Redhat 8.0 which has RPM version 4.1. I am trying to build my own RPM package. My work does not involve any building/make. I just need to pack directories and tar files which inturn has binaries and libraries that is already prepared. I am able to create the package (%files) which includes the directories and tar files. But the problem that I am facing is, During installation I wanted to install the files in the location the user wishes to install. So I created the spec file with the "Prefix: %{defpref}" tag making it a relocatable package. When I try to install using "rpm -i --prefix=<newdir> <rpm>" it does not install in the <newdir>, but installs in the location of the file as it is in package ( ie. in %{defpref}) . I tried using --relocate as well, but it didn't work out. Can anyone tell me what I am missing here? and solve my problem.

Thanks,
Hema
 
Old 11-28-2002, 03:16 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Look for the "Maximum RPM" at http://www.google.com/linux/. I think its at www.tldp.org.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
building a slack package? mrchaos Slackware 21 06-29-2005 11:07 AM
package building dockpunk Slackware 10 03-23-2005 09:46 AM
building rpm package question hct224 Linux - Newbie 2 09-02-2004 05:41 AM
building POSTFIX rpm package for Redhat hct224 Linux - Newbie 6 06-16-2004 01:32 AM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM


All times are GMT -5. The time now is 05:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration