Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old October 27th, 2004   #1
oddabe19
Way Too Much Ubuntu
 
Join Date: Oct 2004
Location: Lancaster, Pennsylvania
Beans: 148
Send a message via AIM to oddabe19
HOW TO: Using checkinstall to make .debs from sources

So you want that app... yes... THAT app, so you goto the website... but... DAMN no .deb file only source files.
If you're anything like me, you hate ./configure, make, make install you just want an easy .deb package, for easy install and removing.
Well, checkinstall does that for you. Checkinstall eliminates the 'make install' area and creates AND installs a .deb package for you, therefore you can remove it with a simple 'dpkg -r foo' or in synaptic.

The first thing you need to do is install check install. So we have to uncomment universe, and apt-get check install like so:
Code:
$sudo gedit /etc/apt/sources.list
then uncomment universe so it looks like this
Code:
deb http://archive.ubuntu.com/ubuntu/ warty universe 
deb-src http://archive.ubuntu.com/ubuntu/ warty universe
save and exit.
Then, open synaptic and search for checkinstall (make sure you update first) or...
Code:
 $ sudo apt-get update && apt-get install checkinstall
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  checkinstall
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.8kB of archives.
After unpacking 135kB of additional disk space will be used.
Enter Y to install.

Now, download that source file you need, unpack it using 'tar zxvf (or jxvf) foo' and cd to that sources directory.

then do the usual.
Code:
  ~/Path/to/folder:$ ./configure

when that is done

   ~/path/to/folder:$ make

let that finish, then, instead of doing a 'make install' do this:

   ~/path/to/folder:$ sudo checkinstall
accept all the defaults, then an option will come up to set a description. You can set one, then hit enter twice, or just hit enter. Select the next default. And that's it. You're done!!
Checkinstall installed the new .deb package for you, and put a copy of the package into that foler you were working in. Now you can move that .deb package where ever you want it and delete that folder.
Now if you want to remove that package, just 'dpkg -r pkgname' or 'apt-get remove pkgname' or do it in synaptic.

Try it out... download beep-media-player based on the other howto (http://www.ubuntuforums.org/showthread.php?t=1988) , then at the end instead of doing a 'make install' do a 'checkinstall'. Then you have a .deb package for future use.

Easy as that.

Comments appriciated!!!
__________________
"For to me, to live is Christ and to die is gain." - Philippians 1:21 (NIV)

Last edited by oddabe19; October 28th, 2004 at 04:30 PM..
oddabe19 is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:47 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry