ronny.haryan.to

Icon

Print: $9.50 — Online: free

checkinstall

Occasionally there are some applications that I’d like to install or try that are not in Ubuntu repositories, and there are no deb packages available, so I have to resort to compiling from source. That’s fine. I just don’t like not being able to easily uninstall them like when I installed using a package management tool (e.g. dpkg). I know some apps provide ‘uninstall’ rule in the Makefile, but it still doesn’t feel right to me.

When I was still using Gentoo, most of the times I could easily write a simple ebuild and put it in my local portage tree overlay, so that I could emerge it (and unmerge it later if I want to).

Not that easy in Debian or Ubuntu. Or, so I thought, until I found checkinstall. It’s available in Ubuntu’s universe repository. So I just do ./configure && make as usual, then instead of running sudo make install, I just do sudo checkinstall -D, answer a few questions, and I’d get a deb package that I can install with dpkg -i. Sweet. checkinstall can also create a Slackware package and an RPM package, by the way.

Note: the website seems to be down at the time of writing. Here’s a cached version.

Category: Linux

Tagged:

2 Responses

  1. edwin says:

    I tried to use chckinstall to create rpm for parrot with no luck. It always gets stuck when dealing with temp dir:

    Copying files to the temporary directory...OK
    
    Striping ELF binaries...OK
    
    Compressing man pages...OK
    
    Building file list...OK
    ln: creating symbolic link `/var/tmp/TBaanCkjWNoWfBVEUdhX/package'
    to `/var/tmp/QkorepFXahTfcdmJmqpO/package': No such file or directory
    
    Building RPM package... FAILED!
    
    *** Failed to build the package
    

    The log only shows the same report. ever found the same problem? have any solution?

  2. ronny says:

    Sorry, I have no idea. I’ve only used it to build .deb packages, not .rpm.

About

Ronny Haryanto is a technology addict/chef wannabe living in beautiful Melbourne, Australia.

Read more…

Follow Me on Twitter

Follow @ronny on Twitter where I post much more often than my blog.