个人工具
登录
查看“UbuntuHelp:CheckInstall”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:CheckInstall”的源代码
来自Ubuntu中文
←
UbuntuHelp:CheckInstall
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/CheckInstall}} {{Languages|UbuntuHelp:CheckInstall}} == Introduction == [[UbuntuHelp:CheckInstall|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. {{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png%7D%7D Use [[UbuntuHelp:CheckInstall|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. == Installation == Install the package <code><nowiki>checkinstall</nowiki></code> 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: <pre><nowiki> sudo aptitude install checkinstall </nowiki></pre> == Usage == Instead of <pre><nowiki> sudo make install </nowiki></pre> you will use <pre><nowiki> sudo checkinstall </nowiki></pre> The installed package can then also easily be removed via [[SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]] or via the terminal: <pre><nowiki> sudo dpkg -r packagename </nowiki></pre> Example: <pre><nowiki> sudo dpkg -r pidgin </nowiki></pre> {{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconNote.png%7D%7D Note that the .deb package it creates can also be used elsewhere, which simplifies installation of the same program on many machines. == Use [[UbuntuHelp:CheckInstall|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 <pre><nowiki> ./configure </nowiki></pre> you use: <pre><nowiki> auto-apt run ./configure </nowiki></pre> If the dependencies are available, a dialog box opens and ask you to install them. The rest remains the same <pre><nowiki> make sudo checkinstall </nowiki></pre> == Related Links == * [[SynapticHowto]] * [[InstallingSoftware]] * [[CompilingSoftware]] * [[http://www.asic-linux.com.mx/~izto/checkinstall/|The checkinstall web site]] ---- [[category:CategorySoftware]] [[category:CategoryCommandLine]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:CheckInstall
。