CINXE.COM
CheckInstall - Debian Wiki
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="/htdocs/favicon.ico"> <script type="text/javascript" src="/htdocs/bugstatus.js"></script> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta name="robots" content="noindex,nofollow"> <title>CheckInstall - Debian Wiki</title> <script type="text/javascript" src="/htdocs/common/js/common.js"></script> <script type="text/javascript"> <!-- var search_hint = "Search"; //--> </script> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/debwiki/css/common.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/htdocs/debwiki/css/screen.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="/htdocs/debwiki/css/print.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="/htdocs/debwiki/css/projection.css"> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/debian-wiki-1.0.css"> <!-- css only for MS IE6/IE7 browsers --> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/htdocs/debwiki/css/msie.css"> <![endif]--> <link rel="alternate" title="Debian Wiki: CheckInstall" href="/CheckInstall?diffs=1&show_att=1&action=rss_rc&unique=0&page=CheckInstall&ddiffs=1" type="application/rss+xml"> <link rel="Start" href="/FrontPage"> <link rel="Alternate" title="Wiki Markup" href="/CheckInstall?action=raw"> <link rel="Alternate" media="print" title="Print View" href="/CheckInstall?action=print"> <link rel="Search" href="/FindPage"> <link rel="Index" href="/TitleIndex"> <link rel="Glossary" href="/WordIndex"> <link rel="Help" href="/HelpOnFormatting"> </head> <body lang="en" dir="ltr"> <div id="logo"><a href="https://www.debian.org" title="Debian Homepage"><img src="https://www.debian.org/Pics/openlogo-50.png" alt="Debian" width="50" height="61"></a></div> <div id="header"> <div id="wikisection"> <p class="section"><a href="/FrontPage" title="Debian Wiki Homepage">Wiki</a></p> <div id="username"><a href="/CheckInstall?action=login" id="login" rel="nofollow">Login</a></div> </div> <div id="navbar"> <ul id="navibar"> <li class="wikilink"><a href="/FrontPage">FrontPage</a></li><li class="wikilink"><a href="/RecentChanges">RecentChanges</a></li><li class="wikilink"><a href="/FindPage">FindPage</a></li><li class="wikilink"><a href="/HelpContents">HelpContents</a></li><li class="current"><a href="/CheckInstall">CheckInstall</a></li> </ul> </div> <form id="searchform" method="get" action="/CheckInstall"> <div> <input type="hidden" name="action" value="fullsearch"> <input type="hidden" name="context" value="180"> <label for="searchinput">Search:</label> <input id="searchinput" type="text" name="value" value="" size="20" onfocus="searchFocus(this)" onblur="searchBlur(this)" onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search"> <input id="titlesearch" name="titlesearch" type="submit" value="Titles" alt="Search Titles"> <input id="fullsearch" name="fullsearch" type="submit" value="Text" alt="Search Full Text"> </div> </form> <script type="text/javascript"> <!--// Initialize search form var f = document.getElementById('searchform'); f.getElementsByTagName('label')[0].style.display = 'none'; var e = document.getElementById('searchinput'); searchChange(e); searchBlur(e); //--> </script> <div id="logo"><a href="https://www.debian.org" title="Debian Homepage"><img src="https://www.debian.org/Pics/openlogo-50.png" alt="Debian" width="50" height="61"></a></div> <div id="breadcrumbs"><a href="/FrontPage" title="Debian Wiki Homepage">Wiki</a><span class="sep">/</span> </div> <ul class="editbar"><li><a href="/CheckInstall?action=login" id="login-1" rel="nofollow">Login</a></li><li class="toggleCommentsButton" style="display:none;"><a href="#" class="nbcomment" onClick="toggleComments();return false;">Comments</a></li><li><a class="nbinfo" href="/CheckInstall?action=info" rel="nofollow">Info</a></li><li><a class="nbattachments" href="/CheckInstall?action=AttachFile" rel="nofollow">Attachments</a></li><li> <form class="actionsmenu" method="GET" action="/CheckInstall"> <div> <label>More Actions:</label> <select name="action" onchange="if ((this.selectedIndex != 0) && (this.options[this.selectedIndex].disabled == false)) { this.form.submit(); } this.selectedIndex = 0;"> <option value="raw">Raw Text</option> <option value="print">Print View</option> <option value="RenderAsDocbook">Render as Docbook</option> <option value="show" disabled class="disabled">Delete Cache</option> <option value="show" disabled class="disabled">------------------------</option> <option value="SpellCheck">Check Spelling</option> <option value="LikePages">Like Pages</option> <option value="LocalSiteMap">Local Site Map</option> <option value="show" disabled class="disabled">------------------------</option> <option value="RenamePage" disabled class="disabled">Rename Page</option> <option value="DeletePage" disabled class="disabled">Delete Page</option> <option value="show" disabled class="disabled">------------------------</option> <option value="show" disabled class="disabled">Subscribe User</option> <option value="show" disabled class="disabled">------------------------</option> <option value="show" disabled class="disabled">Remove Spam</option> <option value="show" disabled class="disabled">Revert to this revision</option> <option value="PackagePages">Package Pages</option> <option value="show" disabled class="disabled">------------------------</option> <option value="Load">Load</option> <option value="Save">Save</option> <option value="SlideShow">SlideShow</option> </select> <input type="submit" value="Do"> </div> <script type="text/javascript"> <!--// Init menu actionsMenuInit('More Actions:'); //--> </script> </form> </li></ul> <h1 id="locationline"> <ul id="pagelocation"> <li><a href="/CheckInstall">CheckInstall</a></li> </ul> </h1> </div> <div id="page" lang="en" dir="ltr"> <div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span> <span class="anchor" id="line-1"></span><span class="anchor" id="line-2"></span><span class="anchor" id="line-3"></span><div><table style="&quot; width: 100%; &quot;"><tbody><tr> <td style="&quot; border: 0px hidden&quot;"><p class="line891"><small><a href="/DebianWiki/EditorGuide#translation">Translation(s)</a> : English - <a href="/fr/CheckInstall">Fran莽ais</a> - <a href="/ru/CheckInstall">袪褍褋褋泻懈泄</a> </small></td> <td style="&quot; text-align: right; border: 0px hidden&quot;"><p class="line862"> <img alt="(!)" height="16" src="/htdocs/debwiki/img/idea.png" title="(!)" width="16" /> <a class="nonexistent" href="/CheckInstall/Discussion">?</a>Discussion</td> </tr> </tbody></table></div><span class="anchor" id="line-4"></span><span class="anchor" id="line-5"></span><ul><li style="list-style-type:none"><p class="line891"><a class="interwiki" href="https://packages.debian.org/checkinstall" title="DebianPkg">checkinstall</a> keeps track of all the files created or modified by your installation script, builds a standard binary package (<tt class="backtick">.deb</tt>, <tt class="backtick">.rpm</tt>, <tt class="backtick">.tgz</tt>) and installs it in your system giving you the ability to uninstall it with your distribution's standard package management utilities. <span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span></li></ul><p class="line867"><span class="anchor" id="line-8"></span><div class="note"><span class="anchor" id="line-1-1"></span><p class="line862">Note that for most useful actions, checkinstall must be run as <a href="/Root">root</a> </div><span class="anchor" id="line-9"></span><span class="anchor" id="line-10"></span><p class="line867"><tt class="backtick">checkinstall</tt> is really useful if you've got a tarball with software that you have to compile with the usual <span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><p class="line867"><span class="anchor" id="line-13"></span><span class="anchor" id="line-14"></span><span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span><span class="anchor" id="line-17"></span><pre><span class="anchor" id="line-1-2"></span>./configure <span class="anchor" id="line-2-1"></span>make <span class="anchor" id="line-3-1"></span>make install <span class="anchor" id="line-4-1"></span>make clean</pre><span class="anchor" id="line-18"></span><span class="anchor" id="line-19"></span><p class="line874">To use it, you just build the software according to its instructions, and <span class="anchor" id="line-20"></span>then use the install command in the instructions through <tt class="backtick">checkinstall</tt>. I usually boils down to <span class="anchor" id="line-21"></span><span class="anchor" id="line-22"></span><p class="line867"><span class="anchor" id="line-23"></span><span class="anchor" id="line-24"></span><span class="anchor" id="line-25"></span><span class="anchor" id="line-26"></span><span class="anchor" id="line-27"></span><span class="anchor" id="line-28"></span><pre><span class="anchor" id="line-1-3"></span>tar -zxvf source-app.tar.gz <span class="anchor" id="line-2-2"></span>cd source <span class="anchor" id="line-3-2"></span>./configure <span class="anchor" id="line-4-2"></span>make <span class="anchor" id="line-5-1"></span>checkinstall</pre><span class="anchor" id="line-29"></span><span class="anchor" id="line-30"></span><p class="line867"><tt class="backtick">checkinstall</tt> will build a .deb package and install it. <span class="anchor" id="line-31"></span><span class="anchor" id="line-32"></span><p class="line862">If you want to remove the package, just use your favorite <a href="/DebianPackageManagement">package management tool</a>. <span class="anchor" id="line-33"></span><span class="anchor" id="line-34"></span><p class="line862">If you add the <tt class="backtick">--install=no</tt> option to <tt class="backtick">checkinstall</tt>, the program will generate a <tt class="backtick">.deb</tt> package without installing it. <span class="anchor" id="line-35"></span><span class="anchor" id="line-36"></span><p class="line862">You can now install the generated <tt class="backtick">.deb</tt> on your computer or other machines of the same architecture (and the same version of Debian system), with <tt class="backtick">dpkg -i source-app_version_amd64.deb</tt> or <a class="interwiki" href="https://packages.debian.org/gdebi" title="DebianPkg">gdebi</a>. <span class="anchor" id="line-37"></span><span class="anchor" id="line-38"></span><p class="line862">The default configuration is read from <tt class="backtick">/etc/checkinstallrc</tt> <span class="anchor" id="line-39"></span><span class="anchor" id="line-40"></span><p class="line867"> <h2 id="See_also">See also</h2> <span class="anchor" id="line-41"></span><span class="anchor" id="line-42"></span><ul><li><p class="line891"><a class="interwiki" href="https://manpages.debian.org/man/8/checkinstall" title="DebianMan">checkinstall manpage</a> <span class="anchor" id="line-43"></span><span class="anchor" id="line-44"></span></li></ul><p class="line867"> <h2 id="External_Links">External Links</h2> <span class="anchor" id="line-45"></span><span class="anchor" id="line-46"></span><ul><li><p class="line891"><a class="http" href="http://checkinstall.izto.org/">Checkinstall homepage</a> <span class="anchor" id="line-47"></span></li><li><p class="line891"><a class="http" href="http://newbiedoc.sourceforge.net/system/checkinstall.html.en">Installing from tarballs using checkinstall</a> (2004) <span class="anchor" id="line-48"></span><span class="anchor" id="line-49"></span></li></ul><p class="line867"><hr class="hr1" /><p class="line874"> <span class="anchor" id="line-50"></span><span class="anchor" id="line-51"></span><p class="line867"><a href="/CategoryPackageManagement"><strong class="highlight">CategoryPackageManagement</strong></a> | <a href="/CategoryPackaging">CategoryPackaging</a> | <a href="/CategorySoftware">CategorySoftware</a> <span class="anchor" id="line-52"></span><span class="anchor" id="bottom"></span></div><div id="pagebottom"></div> </div> <div id="footer"> <p id="pageinfo" class="info" lang="en" dir="ltr">CheckInstall (<a class="nbinfo" href="/CheckInstall?action=info" rel="nofollow">last modified 2019-10-09 18:39:21</a>)</p> <ul id="credits"> <li>Debian <a href="https://www.debian.org/legal/privacy">privacy policy</a>, Wiki <a href="/Teams/DebianWiki">team</a>, <a href="https://bugs.debian.org/wiki.debian.org">bugs</a> and <a href="https://salsa.debian.org/debian/wiki.debian.org">config</a>.</li><li>Powered by <a href="https://moinmo.in/" title="This site uses the MoinMoin Wiki software.">MoinMoin</a> and <a href="https://moinmo.in/Python" title="MoinMoin is written in Python.">Python</a>, with hosting provided by <a href="https://www.man-da.de/">Metropolitan Area Network Darmstadt</a>.</li> </ul> </div> </body> </html>