LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
  Search this Thread
Old 03-21-2009, 09:03 PM   #1
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
Building a RPM


Hi all,

Ive read some previous posts on this subject but im in the dark since i am a newbie still and would like to see if someone can help me with building my own RPM.

Ive also been to the numerous RPM howto build sites but still need help, so if someone could please provide me with answers to some of my questions instead of posting links, that would be very appreciated, unless of course its a site that a 2nd grader can use to build his own RPM with pictures and hand puppets, then those are welcome! j/k

What i want to do is download this open source product which comes in a .tar.gz file, un zip it, run the config, make, make install, etc...

Then tar up the directory and create an rpm based on the arguments i used to do the install. The reason for this is so that when someone else uses this newly created RPM, it will install it in a different directory instead of the default directory, they wont need to run all the commands like configure, make, etc... Just an rpm -i filename.rpm should do the trick.

When i untar the original file and do the install myself, i notice it does have a .spec file. I think this is where im having problems. Can i alter this file to have the new directories in it and then build the rpm? What flags should i pass rpmbuild, ta or ba? When i did ta i have 4 rpm's, the main rpm, the devel, the www, and another one. This confused me because i wanted just one rpm.

Please help me understand how to do this. The guy that was here previously did it this way but left no instructions on how to do it.
 
Old 03-22-2009, 02:44 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
There are a number of steps to take when doing this. The guides on the Red Hat site will lay the steps out for you. It goes without saying that you should read and understand the instructions before starting work!

http://www.redhat.com/docs/books/max-rpm/ - free and legal download of the Maximum RPM book
http://www.redhat.com/docs/books/max...tml/p5208.html
http://www.g-loaded.eu/2006/04/05/ho...ges-on-fedora/
http://docs.fedoraproject.org/develo...-building.html
http://docs.fedoraproject.org/drafts...ting-rpms.html

Hopefully, this should give you enough to not just get started but to fully understand what you need to know - particularly the first link!
 
Old 03-22-2009, 02:49 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,090
Blog Entries: 3

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
any one can change a binary into a rpm tgz to rpm a deb to rpm but if you want to build a rpm that will instruct the system to look for dependency and do the install script you need to learn about the spec file. so if you need some one to push the keys for you while you watch the out put I am very sorry. so here is another unwanted link but if you learn it then you know it.
 
Old 03-22-2009, 07:58 PM   #4
hakkerz4u269
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Banker, please elaborate more on what specifically youre having issues with and ill be glad to help you mate!

Cheers

Last edited by Tinkster; 03-22-2009 at 08:29 PM. Reason: language clean-up
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help building an .rpm from a .src.rpm ssenuta Linux - Software 6 04-10-2006 11:36 PM
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 05:29 PM
need help building rpm Hockeyfan Linux - Software 3 11-20-2004 06:15 AM
building rpm nearfar Linux - Newbie 1 12-29-2003 10:21 PM
building rpm saleem Programming 1 11-12-2001 06:42 AM


All times are GMT -5. The time now is 09:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration