LinuxQuestions.org
Help answer threads with 0 replies.
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-20-2003, 10:36 PM   #1
calimer
Member
 
Registered: Apr 2002
Distribution: Mandrake 10.1
Posts: 181

Rep: Reputation: 30
binary vs source RPM (and other RPM questions)


I have a few questions about rpms. My understanding is that binary rpms are compiled for a certain version of linux. A source rpm I'm assuming contains the source code for a given program. Now, I'm assuming that the source rpm can be used to compile a binary rpm for a certain distro, is this true? And if so, how is this done? (I'm a newb, so try to make it somewhat uncomplicated)

Additionally, is there an easy way to make an rpm out of "tar" files? Since I'm using mandrake 9.1 I'm a bit reluctant to use "tar" files since my distro is rpm based. If there is a simple way to turn those tar files into rpms then that'd make me happy. Any information on this would greatly appreciated. Thank you for your time.
-calimer
 
Old 06-20-2003, 10:49 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Re: binary vs source RPM (and other RPM questions)

Quote:
Originally posted by calimer
I'm assuming that the source rpm can be used to compile a binary rpm for a certain distro, is this true? And if so, how is this done?
-calimer
rpmbuild --rebuild <source rpm>

Quote:
Originally posted by calimer
Additionally, is there an easy way to make an rpm out of "tar" files? Since I'm using mandrake 9.1 I'm a bit reluctant to use "tar" files since my distro is rpm based. If there is a simple way to turn those tar files into rpms then that'd make me happy.
It's not too simple. You can get lot's of info from http://www.rpm.org
 
Old 06-21-2003, 06:03 AM   #3
calimer
Member
 
Registered: Apr 2002
Distribution: Mandrake 10.1
Posts: 181

Original Poster
Rep: Reputation: 30
Thanks! Your response was a great help.
-calimer
 
Old 06-22-2003, 01:25 AM   #4
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
It seems very complicated, but for what it's worth:

http://www.linux-mandrake.com/howtos/mdk-rpm/

for your Mandrake 9.1.
 
Old 06-22-2003, 01:33 AM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
The really casual answer is to look for programs packaged for your distribution and version. Other than for experience, there is often no reason to install from source unless a program or certain function is not available in the packaged version.
That being said. I think is is well worth your while to learn to compile from source. You may need to some time. Source installation has a few simple rules. Download the source code, uncompress it to the directory of your choice (/usr/src ?), read the README and other supplied documentation. Some programs are very simple and others are very complicated.
I found that working through the Linux from Scratch book was a good way to begin to understand working with my Linux system, including compiling source code.
 
  


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
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 10:15 AM
how do I make a binary rpm from a source rpm darkone66669 Linux - Software 3 01-11-2005 11:42 AM
where does it go when rpm a rpm source file feetyouwell Linux - Software 1 09-03-2004 05:14 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 07:12 PM
rpm: cannot execute binary file aqoliveira Linux - General 1 12-26-2001 03:38 AM


All times are GMT -5. The time now is 01:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration