Mailinglist Archive: opensuse (2348 mails)

< Previous Next >
Re: [opensuse] Are src.rpm packages installable?
  • From: Anders Johansson <ajh@xxxxxxxxxx>
  • Date: Wed, 2 Apr 2008 17:45:18 +0100
  • Message-id: <200804021845.18363.ajh@xxxxxxxxxx>
On Wednesday 02 April 2008 18:39:42 Istvan Gabor wrote:
Hello:

Is it possible to install an src.rpm package similarly to binary or
kernel-src packages in openSUSE?
Or are they only for rebuilding?

A src.rpm is installable, but it's not stored in the rpm database, so you
won't see it with rpm -q

All that happens when you install it is that the spec file gets copied
to /usr/src/packages/SPECS and the source tar ball and patches get copied
to /usr/src/packages/SOURCES. You can then "assemble" it with

rpmbuild -bp /usr/src/packages/SPECS/<spec file>

which will unpack the tar ball and apply the patches
in /usr/src/packages/BUILD/<package name>

Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References