FedoraThis forum is for the discussion of the Fedora Project.
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.
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?
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.
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.
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.
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.