[aclug-L] Re: Question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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=
e
> 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=
e
> 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=
686=20
(or on other archs, alpha, alphaev5, sparc, etc)
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
|
|