[opensuse] Are src.rpm packages installable?
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? TIA, IG Nyelvet tanulnál? Japánt, kínait, svédet, arabot, görögöt, angolt vagy bármi mást? Kattints ide és megtalálod amit oly' régóta keresel! http://ad.adverticum.net/b/cl,1,6022,255700,305309/click.prm -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 02/04/2008, Istvan Gabor
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?
If you install one it will put specs, sources, patches under /usr/src/packages -- Benjamin Weber -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2 Apr 2008, Anders Johansson wrote:-
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>
Alternatively, if all you're wanting to do is rebuild them, you don't need to "install" it. All you need to do is use: rpmbuild --rebuild <source package> and, as long as the requirements are satisfied for building, it will be rebuilt for the system it is built upon. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit | openSUSE 11.0a1 SUSE 10.1 64bit | openSUSE 10.2 64bit | openSUSE 10.3 64bit RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thanks. This was exactly I wanted to know. According to this I can remove an installed src.rpm by simply deleting the files from /usr/src/packages/SOURCES and /usr/src/ packages/SPECS, can't I? I checked my directories in /usr/src/packages/ and found that SOURCES has several files. These files are not only source tar.gz files but text files too. How could they get there? Simple compilation (make;make install) could cause that? Or rpmbuild --rebuild might have put them there? Thanks, IG ________________________________________________________ Hatvan év, 17 dalban. Az új Deák Bill album kizárólag a Z2 Zeneportálon! http://www.z2.hu/pages/album.aspx?albumid=59541&status=ok -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2008/4/3 Istvan Gabor
I checked my directories in /usr/src/packages/ and found that SOURCES has several files. These files are not only source tar.gz files but text files too. How could they get there? Simple compilation (make;make install) could cause that? Or rpmbuild --rebuild might have put them there? As you said they are text files, you should check the contents of them. They could be patches to the tarbols. There is a BUILD directory that is used to build the rpm. All 'build' files go there.
ne... -- Registered Linux User # 125653 (http://counter.li.org) Certified: 75% bastard, 42% of which is tard. http://www.thespark.com/bastardtest Now accepting personal mail for GMail invites. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Benji Weber
-
David Bolt
-
Istvan Gabor
-
ne...