Complete.Org: Mailing Lists: Archives: discussion: October 2003:
[aclug-L] Re: Question

[aclug-L] Re: Question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: Question
From: James Lancaster <james@xxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Oct 2003 16:26:23 -0500
Reply-to: discussion@xxxxxxxxx

On Thursday 02 October 2003 00:06, you wrote:
> On Wed, 2003-10-01 at 22:39, Ivan wrote:
> > this probably belongs on teh help list, but is there any docs on how
> > to install from SRPMs or do I need ot grab the precomplied stuff?
> If you just want to compile from the srpm, you don't have to install th=
> srpm first.
> Up through Redhat 7.x (maybe 8.x, I never installed 8.x), the command
> would have been `rpm --rebuild <srpm file name>`.

I believe the split occured in RedHat 8=20

> With v9.x, the build functionality of rpm was split off into the
> `rpmbuild` command so you type `rpmbuild --rebuild <srpm file name>`.
> Either way, rpm will extract the source to /usr/src/redhat/BUILD,
> configure and build it according to the spec file in the srpm and creat=
> a binary package (or packages, depends on the spec file) in
> /usr/src/redhat/RPMS/<arch>. On x86 based systems <arch> is usually
> "i386". You can just look at the output of the rpm build command at the
> end; it will tell you what rpm files it created and where they are.

If you want to do it the hard way you can do: rpm -ivh whatever.srpm
cd /usr/src/redhat/SPECS
rpm -bb whatever.spec OR rpmbuild -bb whatever.spec (depending on version=
rpm -ivh /usr/src/redhat/RPMS/iX86/whatever.rpm (iX86 may be i386 on to i=
(or on other archs, alpha, alphaev5, sparc, etc)

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,

[Prev in Thread] Current Thread [Next in Thread]