On Sat, 18 Dec 1999, Denis Havlik wrote:

> :>Is there a trick to installing source RPMs?  I 
> :>downloaded  samba-2.0.5a-3mdk.src.rpm from one of the
> :>mandrake mirrors, and installed it using 'rpm -ivh' (like all the binaries 
> :>I do successfully).  When I then
> :>query for the file list, I get told it isn't installed?
> 
> <EDUCATIVE>
> srpm!=rpm
> 
> "Source" rpm-s have to be "built", in order to get binary rpm-s. Usually
> (but not neccecarely) this includes compiling of the program sources. This
> is whay they are called "source rpm-s". .-)
> </EDUCATIVE>
> 
> one way to get binary rpm out of source rpm is:
> 
> rpm --rebuild <PACKAGE>
> 
> This can take some time.
> 
> If everything goes well, in the end you will find
> newly-compiled rpm-package somewhere in in /usr/src/RPM/RPMS/ directory. 
> 
> :>[root@sphinx local]# rpm -ivh samba-2.0.5a-3mdk.src.rpm
> :>samba                       ##################################################
> 
> this probably just puts the sources somewhere under /usr/src/RPM.
> 
> :>[root@sphinx local]# rpm -ql samba-2.0.5a-3mdk.src.rpm
> :>package samba-2.0.5a-3mdk.src.rpm is not installed
> 
> I do not think this would work even if the package were binary rpm. Look:
> 
> [denis@fudo havlik]$ rpm -q pine
> pine-4.10-5mdk
> [denis@fudo havlik]$ rpm -q pine-4.10-5mdk
> pine-4.10-5mdk
> [denis@fudo havlik]$ rpm -q pine-4.10-5mdk.i586.rpm
> package pine-4.10-5mdk.i586.rpm is not installed

rpm -ql -p pine-4.10-5mdk.i586.rpm # the -p is the important part.
 
> hope this helps
> 
>       Denis
> 
> 
> -----------------------------------------------------------
> Denis Havlik  |||   http://www.ap.univie.ac.at/users/havlik
>              (@ @)  [EMAIL PROTECTED]       
> ---------oOO--(_)--OOo-------------------------------------
> 

-- 
MandrakeSoft          http://www.mandrakesoft.com/
                                        --Axalon

Reply via email to