PDA

View Full Version : Sorce RPM. Where are the files now?



mio
3rd March 2009, 06:57 PM
I installed rpm with source code and can't find where are the files from it. Help me please:)

Hlingler
3rd March 2009, 06:59 PM
You can't "install" a source RPM (SRPM, *.src.rpm). You must re-build it into a useful binary RPM.

More info please: exactly what have you done, and what are you trying to accomplish ?

V

mio
3rd March 2009, 07:08 PM
I just typed
su -c 'rpm -i kdegames4-4.1.3-2.2mdv2009.0.src.rpm'
it gave some warnings and that's all. What I should do to get the source?

Hlingler
3rd March 2009, 07:10 PM
Once again: you cannot install a source RPM. Install the rpmbuild tools, and re-build it into a real RPM.

V

mio
3rd March 2009, 07:15 PM
I just want to watch the code and perhaps to build it.

markkuk
3rd March 2009, 07:23 PM
You can't "install" a source RPM (SRPM, *.src.rpm).
Yes, you can. Installing a SRPM unpacks the sources, patches and the spec file in your RPM build directory. This allows modifying the package before building it.

sideways
3rd March 2009, 07:24 PM
you should have typed


rpm -i kdegames4-4.1.3-2.2mdv2009.0.src.rpm

and the source tarball would end up in ~/rpmbuild/SOURCES/. You ran it as root so it's now in /usr/src/redhat/SOURCES (iirc), just delete that directory and install again.

To build the source tree with patches applied do


rpmbuild -bp ~/rpmbuild/SPECS/kdegames*.spec

the source tree will expand in ~/rpmbuild/BUILD/

mio
3rd March 2009, 07:26 PM
Than where is the rpm build directory on Fedora 10?

JohnVV
3rd March 2009, 07:31 PM
Then where is the rpm build directory on Fedora 10?
have you installed the rpm build tools ?
and made a rpm build environment ?
just extracting a srpm will leave it in ~/rpmbuild/SOURCES/
/home/your-user-name/rpmbuild/SOURCES/

mio
3rd March 2009, 07:33 PM
thanks, ok. now I see it.