Jan 2, 2011

Compile & Install TAR GZ & TAR BZ2 Files

The is the short instruction on how to compile and install from a .TAR.GZ or TAR.BZ2 file. Ensuring this is done properly will provide a nice clean way to remove the software afterwards via your package manager.

Preparing your system:

  • sudo apt-get install build-essential checkinstall
  • sudo apt-get install subversion git-core mercurial
  • sudo mkdir /usr/local/src
  • sudo chown $USER /usr/local/src
  • sudo apt-get install apt-file
  • sudo apt-file update

Extract and configure:
  • cd /usr/local/src
  • tar -zxvf .tar.gz
  • [ or ] tar -jxvf .tar.bz2
  • cd /usr/local/src/
  • ./configure
  • [ optional ] sudo apt-get install autoconf
  • [ optional ] apt-file search .
  • [ optional ] sudo apt-get install  

Build & Install:
  • make
  • sudo checkinstall
  • [ add description accordingly ]