HOWTO : Build deb from source on Ubuntu 9.04

Download checkinstall

sudo apt-get install checkinstall

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

wget http://www.foo.com/downloads/foo.tar.gz

tar -xzvf foo.tar.gz
cd foo

./configure
make
sudo checkinstall

After that, the package will be installed automatically and a deb is also generated. You can uninstall package as usual.

For checkinstall usage, please man it.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: