Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 09-23-2005, 01:06 PM   #1
Registered: Sep 2005
Posts: 47

Rep: Reputation: 15
where do source rpms go?

maybe i'm just having a stupid moment but i installed a source rpm (rpm -Uvh srcfile.rpm) and now i can't find where the heck it went!! i tried reinstalling thinking maybe something went wrong but it says its already installed.. anyone?
Old 09-23-2005, 01:23 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
it'll be in /usr/src/Redhat/SRPMS or somethign very similar. note that this IS the source code, not a program, and you'll trypically not install it, but build another binary RPM from it, using erm... rpm --rebuild or something... i forget.
Old 09-23-2005, 01:53 PM   #3
Registered: Sep 2005
Posts: 47

Original Poster
Rep: Reputation: 15
see thats what i thought too but look

[root@localhost /]# ls -a /usr/src/redhat/SRPMS/
. ..
[root@localhost /]#

theres nothing there :|
Old 09-23-2005, 08:00 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
There is a SPECS directory where the spec file of the source package goes. The source and patches go in the SOURCES directory.

You use the rpmbuild command to build a new src.rpm or a regular rpm, or to install, depending on which option you use.

If you build a compiled rpm package, it will go into the RPM directory. Suppose that you made some changes to the source. You can repackage a source rpm. The source rpm that you produce goes into the SRPMS directory.

cd /usr/src/redhat/SPECS/
rpmbuild -bi packagename.spec

This will apply the patches, build the application and install it.

I've used rpmbuild -bp to apply patches, and then, after extracting the source tarball, produced postscript documentation from the .texi source.
Old 09-24-2005, 05:57 PM   #5
Registered: Sep 2005
Posts: 47

Original Poster
Rep: Reputation: 15
same thing as before

[root@localhost ~]# ls -a /usr/src/redhat/SPECS/
. ..
[root@localhost ~]#

see nothing there still
i dunno wtf is going on.. :|
Old 09-24-2005, 07:08 PM   #6
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Whats the package you installed and its filename.
Old 09-24-2005, 09:50 PM   #7
Registered: Sep 2005
Posts: 47

Original Poster
Rep: Reputation: 15
uhm its bittorrent
i know it doesn't say .src.rpm or whatever but thats what they call it
also when it installed in the instructions it says to open some files with python but i don't have those files
Old 09-25-2005, 10:00 AM   #8
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 20, 21, RHL 5.2
Posts: 546

Rep: Reputation: 43
If it doesn't say .src.rpm at the end then it is not a source rpm it is a binary rpm. If it were a source rpm it would be where jshiwal mentioned. Try this command substituting the bittorent package you installed.
rpm -qlp bittorrent-3.3-0.fdr.1.rh73.noarch.rpm
It will list the full pathname for each file that was installed by that package. If it is the bittorent I'm thinking of there will be a lot of python programs put in /usr/bin starting with bt*. Since python is an interpreted language these are source code, but the rpm is not considered a src.rpm.


Last edited by wmakowski; 09-25-2005 at 10:04 AM.
Old 09-25-2005, 02:01 PM   #9
Registered: Sep 2005
Posts: 47

Original Poster
Rep: Reputation: 15
oh ok thanks man!
it was confusing that they called it a source file but it wasn't src.rpm..
thanks again!


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
Compliling Source RPMs RagingIfrit Linux - Software 8 07-08-2004 03:51 PM
kernel-source rpms santner Linux - Software 1 04-29-2004 04:43 PM
Using Source RPMs Ross Clement Red Hat 3 11-23-2003 03:44 PM
help with source rpms with rehat8.0 amtsdw Linux - Newbie 1 04-24-2003 09:12 AM
source rpms Daveb3 Linux - Newbie 9 04-05-2003 02:26 PM

All times are GMT -5. The time now is 09:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration