How to make a deb file from Source code

First You have to install checkinstall

$ sudo apt-get install checkinstall ( Or Install from synaptic Package manager)

Download the source file, such as example.tar.gz and extract it.

$ wget http://www.example.com/downloads/example.tar.gz
( Or use any common method you have used for download a file)

Now Extract the tar.gz file (it will automatically create a folder with first part of filename)
(for getting # prompt type sudo su and give your password)
#tar -xzvf example.tar.gz
#cd example

#./configure
#make
#sudo checkinstall

Now it creates a deb file and the package will install automatically.

See the man page more details about checkinstall , please man it.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s