个人工具

“UbuntuHelp:CheckInstall/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
通过 auto-apt 使用 CheckInstall
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
 +
{{From|https://help.ubuntu.com/community/CheckInstall}} {{Translator|yongyi leal MillenniumDark}} {{verifier|dbzhang800}}
  
== CheckInstall 指南 ==
+
{{Languages|UbuntuHelp:CheckInstall}}
  
原文出处:[https://help.ubuntu.com/community/CheckInstall Ubuntu Documentation]
+
<br> CheckInstall能跟踪由“make install”或类似命令安装的所有文件,并为这些文件创建Slackware、RPM或者Debian安装包,然后把它添加到已安装软件包数据库中,以便能简便的卸载或发布安装包。
  
原文作者:Ubuntu Community
+
<br> attachment:IconsPage/IconTip.png 使用CheckInstall而不是仅仅运行"sudo make install",因为那多半会把文件放在文件系统的很多地方,万一出错了可没有容易的方法删除它们。如果在将来你试图安装一个含有和你现在编译的文件相同的文件的软件包,你将收到出错消息,你编译好的软件可能停止工作。
  
授权许可:
+
=== 安装 ===
* [http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]
+
* [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证]
+
  
翻译人员:
+
sudo apt-get install checkinstall
* yongyi(主体)
+
* leal(第一段)
+
* MillenniumDark(第二段)
+
  
校正人员:
+
<br>
  
贡献人员:
+
=== 使用 ===
 
+
适用版本:
+
文章状态:[[等待校正]]
+
----
+
 
+
 
+
 
+
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 。
 
你将使用 sudo checkinstall 代替 sudo make install 。
 
The installed package can then also easily be removed via <code><nowiki>synaptic</nowiki></code>or
 
  
 
那安装了的软件包之后也可通过 新立得 (synaptic) 或用下列语句很容易地卸载。
 
那安装了的软件包之后也可通过 新立得 (synaptic) 或用下列语句很容易地卸载。
  
<pre><nowiki>
+
sudo dpkg -r packagename
sudo dpkg -r packagename
+
</nowiki></pre>
+
  
=== Use CheckInstall with auto-apt(通过 auto-apt 使用 CheckInstall) ===
+
=== 通过 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 !  
+
当你想用 checkinstall 从源码建立一个简单的软件包,你可以使用 auto-apt 。你需要安装 auto-apt !
  
Instead of
+
代替:
  
代替:
+
/configure
  
<pre><nowiki>
+
你可使用:
./configure
+
</nowiki></pre>
+
  
you use:
+
auto-apt run ./configure
 
+
你可使用:
+
 
+
<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:
+
make
 +
sudo checkinstall
  
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] 反馈了一些麻烦:
 
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。  
+
他用 有几个依赖包的Swftools 来测试。avi2swf 不能正确编译,他不得不卸载所有 avifile 的依赖包,手动从编译程序删除 avi2swf。
  
 
Credits: [http://forum.ubuntu-fr.org/viewtopic.php?id=1328 Ubuntu-fr.org]
 
Credits: [http://forum.ubuntu-fr.org/viewtopic.php?id=1328 Ubuntu-fr.org]
  
----
+
[[Category:CategoryDocumentation]]
[[category:CategoryDocumentation]]
+

2010年9月12日 (日) 22:05的最新版本



CheckInstall能跟踪由“make install”或类似命令安装的所有文件,并为这些文件创建Slackware、RPM或者Debian安装包,然后把它添加到已安装软件包数据库中,以便能简便的卸载或发布安装包。


attachment:IconsPage/IconTip.png 使用CheckInstall而不是仅仅运行"sudo make install",因为那多半会把文件放在文件系统的很多地方,万一出错了可没有容易的方法删除它们。如果在将来你试图安装一个含有和你现在编译的文件相同的文件的软件包,你将收到出错消息,你编译好的软件可能停止工作。

安装

sudo apt-get install checkinstall


使用

你将使用 sudo checkinstall 代替 sudo make install 。

那安装了的软件包之后也可通过 新立得 (synaptic) 或用下列语句很容易地卸载。

sudo dpkg -r packagename

通过 auto-apt 使用 CheckInstall

当你想用 checkinstall 从源码建立一个简单的软件包,你可以使用 auto-apt 。你需要安装 auto-apt !

代替:

/configure

你可使用:

auto-apt run ./configure

如果有可用的依赖包,会弹出一个对话框,让你安装他们。

接着的步骤就一样了:

make
sudo checkinstall


attachment:IconsPage/IconWarning3.png Blog Rabais 反馈了一些麻烦:

他用 有几个依赖包的Swftools 来测试。avi2swf 不能正确编译,他不得不卸载所有 avifile 的依赖包,手动从编译程序删除 avi2swf。

Credits: Ubuntu-fr.org