For all those who are beginners in any Linux (Ubuntu) find hard to find the package files of their distro and end up in finding a source package (which is either in tar.gz or .gz), so now people think how to install these source files?

Lets see now how would you be installing source files in Ubuntu..

Source files contain the programs and hence before the installation you need to compile them, so you need to install the build-essentials from the synaptic package manager, else this build-essentials is already present in the cd, and so you can install it, .else you can install it by typing it in the terminal:

sudo aptitude install build-essential

Suppose you have a source file name src.tar.gz, what you do initially is that you need to extract the source files and then in the terminal navigate to the folder where the source file is extracted using the cd commands, and then type the following:



sudo make install

clean install

Lets see what each one of them does…

  • ./configure: checks whether the required dependencies are available on your system or not, if not an error is reported.
  • make compiles the source code and make install is used to install the program in to the location, if it asks for an installation location it is recommended to install all the source to /usr/src
  • clean install removes any temporary files created in the installation process of the source.

And thats it your source file is installed in your system.