||<>|| = Introduction = CheckInstall keeps track of all files installed by a "make install" or equivalent, creates a Slackware, RPM, or Debian package with those files, and adds it to the installed packages database, allowing for easy package removal or distribution. {{attachment:IconsPage/tip.png}} Use CheckInstall instead of just running "sudo make install", as that will likely put files all over the filesystem, with no easy way of removing them if things go wrong. If in the future you try to install a package that contains the same file as the software you are compiling, you will receive errors and the software you compiled may stop working. (In fact, checkinstall can keep track of files modified by ''any'' command line, not just a "make install", so you can use it for any type of installation task outside of apt, and it will keep track of the installation in the package manager.) {{attachment:IconsPage/dont.png}} CheckInstall is not designed to produce packages suitable for distribution. Do not use it to produce packages intended for the Ubuntu archive or PPAs. Instead, follow the [[http://packaging.ubuntu.com/html/|Packaging Guide]]. {{attachment:IconsPage/warning.png}} From the [[http://www.asic-linux.com.mx/~izto/checkinstall/docs/README|checkinstall README]]: "The Debian support in CheckInstall is still new, so handle it with care. It has been reported to work OK in some Debian systems and it certainly works OK in my Slackware development system with dpkg installed. Your mileage may vary." = Installation = Install the package {{{checkinstall}}} from the [[Repositories/Ubuntu| Repositories]]. For help on installing software in Ubuntu, see [[InstallingSoftware]]. A quick method via the [[UsingTheTerminal| terminal]] for those who like to copy and paste: {{{ sudo apt-get update && sudo apt-get install checkinstall }}} = Usage = Instead of {{{ sudo make install }}} you will use {{{ sudo checkinstall }}} When called with no arguments, checkinstall will call "make install". If you need other arguments, they can be supplied: {{{ sudo checkinstall make install_package }}} The installed package can then also easily be removed via [[SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]] or via the terminal: {{{ sudo dpkg -r packagename }}} Example: {{{ sudo dpkg -r pidgin }}} {{attachment:IconsPage/note.png}} Note that the .deb package it creates can also be used elsewhere, which simplifies installation of the same program on many machines. = Use CheckInstall with auto-apt = You can use auto-apt when you want to build a simple package from source with checkinstall. You need to have [[AutoApt|auto-apt]] installed! Instead of {{{ ./configure }}} you use: {{{ auto-apt run ./configure }}} If the dependencies are available, a dialog box opens and ask you to install them. The rest remains the same {{{ make sudo checkinstall }}} = Related Links = * [[SynapticHowto]] * [[InstallingSoftware]] * [[CompilingSoftware]] * [[http://packaging.ubuntu.com/html/|Packaging Guide]] * [[http://www.asic-linux.com.mx/~izto/checkinstall/|The checkinstall web site]] ---- CategorySoftware CategoryCommandLine