Saturday 15 September 2012

Guide to Install Source Package Tarballs (tar.gz,tar.bz2,tar.tgz) in Linux !

Howdy Folks !

Today I'd be showing you how to install from Source Package ie Tarballs also commonly seen as tar.gz/bz2 files.Though be strongly recommend using PPA for installation or the DEB package sometimes these aren't available and we have to rely on Tarballs package.Don't panic cause installation using Tarballs is as simple but is avoided cause it comes at a cost of few extra steps which we generally tend to avoid. ? Building from source is a reasonably simple process, but it can be complicated sometimes. You can even end up with two versions of an application installed simultaneously which can cause a lot of problems. So, all you need to do is Be Careful !

Make Install first:-

There are the 3 basic command you'll like to commit-to-memory because these are the ones that you'll be running everytime you need to install an application from a source file. If you don't want to, then just for Deb :) its still working.

First things first ! We need these binaries -

sudo apt-get install checkinstall build-essential

Not to mention, we will need to extract the files before we can actually install them using building tool make

Extracting the Tarballs (without being the root)

$ tar zxf compressed_file.tar.gz  $ tar zxf compressed_file.tgz  $ tar jxf compressed_file.tar.bz2  $ tar jxf compressed_file.tbz2

(Replace 'compressed_file' by the actual package file name)

The 3 steps to success are (make sure that you cd to the directory in which you've unzipped the file and then type in the commands shown below)

$ ./configure  $ make  $ make install

and  it's done the package would be installed in few moments. Just to make a note that also sometime in state of error

sudo apt-get clean all command is very helpful.




No comments:

Post a Comment

Thanks for Visiting LinuxWorkstation