[ale] *src.rpm and .rpm files

Jim Popovitch jimpop at yahoo.com
Sun Jan 14 22:43:20 EST 2001


Doesn't the rpm -rebuild functionality do all of that?

-Jim P.

--- James Kinney <jkinney at localnetsolutions.com> wrote:
> When you see *.src.rpm, it is a non-compiled source file. You have to
> compile it and then install the binary. 
> 
> To install the *.src.rpm :
> rpm -ivh *.src.rpm
> it gets put in various places in /usr/src/redhat. There is the spec
> file
> which is used to build the binary placedin
> /usr/src/redhat/SPECS/*.spec,
> the source file, tar.gz or tar.bz2, and all the patches, are in
> /usr/src/redhat/SOURCES.
> 
> To compile:
> cd /usr/src/redhat/SPECS
> rpm -ba foo.spec
> 
> it will put the new src.rpm file /usr/src/redhat/SRPMS
> and the binary file(s) in /usr/src/redhat/RPMS/[arch]
> where [arch] is i386, i486, i586, i686, arm, etc.
> 
> Install the new binary with rpm -ivh
> /usr/src/redhat/RPMS/[arch]/foo.rpm
> if new,
> or rpm -Uvh /usr/src/redhat/RPMS/[arch]/foo.rpm if upgrading or
> install
> or rpm -Fvh /usr/src/redhat/RPMS/[arch]foo.rpm to only upgrade if
> already
> a version installed
> 
> JimK
> Local Net Solutions
> 
> On Sun, 14 Jan 2001, I.M. wrote:
> 
> > One more question, then I'll leave you all alone for a while.
> > 
> > I am not understanding the difference between a 'regular' rpm file
> and a 'source' rpm file.
> > 
> > And what is the difference between them in the install? I
> downloaded fetchmail-5.6.2-1.src.rpm
> > 
> > I was going to use rpm -F, which I have been told may not be such a
> keen idea, and then there are sections in the man pages that I am
> having some difficulty understanding, about having to do a
> "--rebuild".
> > 
> > Some info would be cool before I go and totally screw something up.
> > 
> > Thanks,
> > 
> > -Indira
> > 
> > 
> > --
> > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in
> message body.
> > 
> 
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in
> message body.


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list