LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-17-2002, 11:32 PM   #1
captgoodnight
Member
 
Registered: Jan 2002
Distribution: suse 7.2
Posts: 56

Rep: Reputation: 15
what is this file for anyways?


Okay, I know this is a stupid question, but it is on my list of things to understand. So, here it is. When I download updates for Mandrake, I download common rpms, and src.rpms, or something like that. What is the purpose of installing these src.rpms? What do they update? Are they for kernel recompiling? I understand rpms but not src.rpms. Silly I'm sure, but this idea of srcs I'm sure goes a far distance. Thank you -cg
 
Old 08-17-2002, 11:37 PM   #2
ksandre
LQ Newbie
 
Registered: Jul 2002
Location: New Hampshire, USA
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
I use Slackware, so use only *.tgz and *.tar.gz format (though sometimes convert *.rpm files with "rpm2tgz." :)

Anyway, my understanding is that srcrpms are exactly that - source code to compile then install as rpm. (Our *.tar.gz" cousin.)
 
Old 08-18-2002, 12:26 AM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Quote:
Originally posted by ksandre
I use Slackware, so use only *.tgz and *.tar.gz format (though sometimes convert *.rpm files with "rpm2tgz."

Anyway, my understanding is that srcrpms are exactly that - source code to compile then install as rpm. (Our *.tar.gz" cousin.)
It doesn't answer the addressed question, does it?
rpm - is precompiled binaries gathered in one file
src.rpm - source files wrapped around rpm format
installing rpm is straight forward
rpm -ihv package.rpm
installing src.rpm requires two steps (at least for me)
rpm --rebuild package.src.rpm
rpm -ihv /where/the/rpms/were/created/package.rpm
I think one-step compilation of src.rpm's is the use of --recompile flag, I've never used it though, so I might be wrong.
Let's see what others suggest, maybe I learn something new from them.
 
  


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
forrtl: severe (47): write to READONLY file, unit 5, file /dev/pts/1 terrence Programming 1 10-01-2005 11:22 PM
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 09:34 AM
Yum update complains missing file (broken dep), but file can be located. davidas Linux - Software 0 03-27-2004 10:11 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 11:31 AM


All times are GMT -5. The time now is 12:45 AM.

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