More Linux Commands

Installing TARBALLS


Sometimes you come across a program that's not an .rpm
RPM's are easy, but don't work on all systems.

Tarballs, as they're called, are compiled for
YOUR system at installation time.
They can be .tar .tgz .tar.gz or .zip files.
Instructions usually come with them,
but this generic guide will work most times.

I suppose you could let me know of tarballs that don't work this way.
  - and I MIGHT list them here
:-)
You can e-mail me (Gordon WHITE) at: grdnwht@iinet.net.au


GENERIC "TARBALL" GUIDE


  ACTION

  COMMAND

Preparation

make sure you are in the /. directory as root

logout / login if necessary

make temporary area

mkdir /junk

copy .tar .tgz .tar.gz or .zip to /junk

cp /xxx.xxx /junk

create a directory & extract the software into /packagename

tar -zxvf packagename

Compile & Install

switch to the /package directory

cd /packagename

run the configuration script by typing

./configure

watch the output comments

this might take a while

build packagename by typing

make

install packagename under /usr/local/bin by typing

make install

watch output

you might learn something!

Running

switch to /usr/local/bin

cd /usr/bin/local

run the package by typing

packagename

 

Neh, changed my mind .....

 

  ACTION

  COMMAND

REMOVING IT (completely)

switch to /junk/packagename and type

make clean

this will remove object and binary files but leave the source

if the source is of no further use, then as below

remove the source

rm packagename

..... and?
Print this sheet out and / or save it and reformat it to create a 'cheatsheet' for yourself.

Copyright?

It would be madness to say this was copyrighted, I won't even say it's accurate!
..... but, if you pass it on to someone else, don't claim that YOU created it.
Rather leave the credit on it, that says Gordon WHITE did! Thanks.


Gordon WHITE - 17/10/99
grdnwht@iinet.net.au


Back to Gordon's Home page