Ok, I should know this ...

Myles Green myles-green
Mon May 17 11:53:42 PDT 2004


On Mon, 15 Sep 2003 22:54:16 -0500, Michael Hipp <Michael at Hipp.com>
wrote:
> I've compiled a couple of sizable apps and their libraries. Now I need
> 
> to do 'make install' but I want to grab everything to be installed and
> 
> take it to another machine that doesn't have dev tools on it. What's
> the command that turns the results of make into, say, an rpm?
> 
> Thanks,
> Michael

>From memory, that depends on the version of RPM you have installed, if
this is an older version (ie: Red Hat <= 7.3, not sure about 8.0) then
try the following:

rpm -tb /path/to/something-cool.tar.gz

If it's a newer version (ie: Red Hat 9) then it's:

rpmbuild -tb /path/to/something-cool.tar.bz2

If you want binary AND source rpms then change the "-tb" to "-ta".

If you need to pass different or special build-time options then you'll
have to unpack the tarballs and edit the spec file(s)
(something-cool.spec) and then either re-pack them again or just move a
copy of the tarball to to /usr/src/redhat/SOURCES/ and a copy of the
spec file to/usr/src/redhat/SPECS/, then cd to the "SPECS" directory and
issue this at the CLI:

rpm -bb --target=i686 something-cool.spec 

(assuming your machine IS an i686 - if not, then change it match your
platform or leave the"--target=" out). The same rules apply here
concerning versions of RPM and using "rpm" or "rpmbuild".

HTH

-- 
Myles Green <myles-green at shaw.ca>
Slackware-9.1pre + IceWM-1.2.12 + Sylpheed-0.9.4
--
Alberta Mirror Linux-SxS.org
http://linux-sxs.org/


More information about the Linux-users mailing list