个人工具
登录
查看“UbuntuHelp:CheckInstall/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:CheckInstall/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:CheckInstall/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== CheckInstall 指南 == 原文出处:[https://help.ubuntu.com/community/CheckInstall Ubuntu Documentation] 原文作者:Ubuntu Community 授权许可: * [http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0] * [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证] 翻译人员: * yongyi(主体) * leal(第一段) * MillenniumDark(第二段) 校正人员: 贡献人员: 适用版本: 文章状态:[[等待校正]] ---- 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. CheckInstall能跟踪由“make install”或类似命令安装的所有文件,并为这些文件创建Slackware、RPM或者Debian安装包,然后把它添加到已安装软件包数据库中,以便能简便的卸载或发布安装包。 attachment:IconsPage/IconTip.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. attachment:IconsPage/IconTip.png 使用CheckInstall而不是仅仅运行"sudo make install",因为那多半会把文件放在文件系统的很多地方,万一出错了可没有容易的方法删除它们。如果在将来你试图安装一个含有和你现在编译的文件相同的文件的软件包,你将收到出错消息,你编译好的软件可能停止工作。 === Installation(安装) === <pre><nowiki> sudo apt-get install checkinstall </nowiki></pre> === Usage(使用) === Instead of <code><nowiki>sudo make install</nowiki></code> you will use <code><nowiki>sudo checkinstall</nowiki></code> 你将使用 sudo checkinstall 代替 sudo make install 。 The installed package can then also easily be removed via <code><nowiki>synaptic</nowiki></code>or 那安装了的软件包之后也可通过 新立得 (synaptic) 或用下列语句很容易地卸载。 <pre><nowiki> sudo dpkg -r packagename </nowiki></pre> === Use CheckInstall with auto-apt(通过 auto-apt 使用 CheckInstall) === 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! 当你想用 checkinstall 从源码建立一个简单的软件包,你可以使用 auto-apt 。你需要安装 auto-apt ! 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> attachment:IconsPage/IconWarning3.png [http://nawer.sanspub.org/dotclear/index.php?2005/07/19/66-installation-a-partir-des-sources Blog Rabais] reported some troubles: He tested it with Swftools which has several dependencies. avi2swf didn't compile correctly and he had to remove all avifile dependencies manually to remove avi2swf from the compilation attachment:IconsPage/IconWarning3.png [http://nawer.sanspub.org/dotclear/index.php?2005/07/19/66-installation-a-partir-des-sources Blog Rabais] 反馈了一些麻烦: 他用 有几个依赖包的Swftools 来测试。avi2swf 不能正确编译,他不得不卸载所有 avifile 的依赖包,手动从编译程序删除 avi2swf。 Credits: [http://forum.ubuntu-fr.org/viewtopic.php?id=1328 Ubuntu-fr.org] ---- [[category:CategoryDocumentation]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
模板:Translator
(
查看源代码
)
模板:Verifier
(
查看源代码
)
返回至
UbuntuHelp:CheckInstall/zh
。