LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem *.src.rpm installation (https://www.linuxquestions.org/questions/linux-newbie-8/problem-%2A-src-rpm-installation-459987/)

mihalisla 07-01-2006 07:09 AM

Problem *.src.rpm installation
 
Hello,
Is there a specific way installing src.rpm files???
How can I check dependencies and requirements for a file of this kind???
Thank you foe your attention:)

P.S I use suse linux 10 on 64 bit platform

reddazz 07-01-2006 07:19 AM

Source rpms (src.rpm) are installed in the same way as normal rpms. Remember though, that source rpms only contain source code for an application and are used to build binary rpms from this source code. The source code can be found somewhere in /usr/src when you have installed the src.rpm. A source rpm does not really have any dependencies, but the final package you will build from it, will probably have some dependencies. You can check these out, by looking at the spec file of this packages. Spec files are usually in a subdirectory called SPECS which is located somewhere in a subdirectory of /usr/src.

gzickert 07-01-2006 07:17 PM

Building from src.rpm files
 
Enter "man rpmbuild" to get the arguments for the rpmbuild command. The two of interest are --rebuild and --recompile. The invoke the build which may have dependancies imbedded in the .spec file found in the .../SPEC directory after the src.rpm is installed. BTW it is install by the rpmbuild command as part of the build but may be installed using the standard rpm install command "rpm -ivh <your.rpm>". The package installation directory tree contains the .../RPMS, .../SRPMS, .../BUILD and .../SPEC branches.


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