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
( 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

#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.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s