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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-20-2003, 09:36 PM
|
#1
|
Member
Registered: Apr 2002
Distribution: Mandrake 10.1
Posts: 182
Rep:
|
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
|
|
|
06-20-2003, 09:49 PM
|
#2
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
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
|
|
|
06-21-2003, 05:03 AM
|
#3
|
Member
Registered: Apr 2002
Distribution: Mandrake 10.1
Posts: 182
Original Poster
Rep:
|
Thanks! Your response was a great help.
-calimer
|
|
|
06-22-2003, 12:25 AM
|
#4
|
Member
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445
Rep:
|
It seems very complicated, but for what it's worth:
http://www.linux-mandrake.com/howtos/mdk-rpm/
for your Mandrake 9.1.
|
|
|
06-22-2003, 12:33 AM
|
#5
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|