个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
第5行: 第5行:
 
{{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.
 
{{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 ==
 
== Installation ==
Install the package <code><nowiki>checkinstall</nowiki></code> from the [[Repositories/Ubuntu| Repositories]].
+
Install the package <code><nowiki>checkinstall</nowiki></code> from the [[UbuntuHelp:Repositories/Ubuntu| Repositories]].
For help on installing software in Ubuntu, see [[InstallingSoftware]].
+
For help on installing software in Ubuntu, see [[UbuntuHelp:InstallingSoftware]].
A quick method via the [[UsingTheTerminal| terminal]] for those who like to copy and paste:
+
A quick method via the [[UbuntuHelp:UsingTheTerminal| terminal]] for those who like to copy and paste:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo aptitude install checkinstall
 
sudo aptitude install checkinstall
第19行: 第19行:
 
sudo checkinstall
 
sudo checkinstall
 
</nowiki></pre>
 
</nowiki></pre>
The installed package can then also easily be removed via [[SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]]
+
The installed package can then also easily be removed via [[UbuntuHelp:SynapticHowto#head-9a2bcc5a697205e980d6b8b3cac02f799e1bd5f0| Synaptic]]
 
or via the terminal:
 
or via the terminal:
 
<pre><nowiki>
 
<pre><nowiki>
第30行: 第30行:
 
{{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.
 
{{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 ==
 
== 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!
+
You can use auto-apt when you want to build a simple package from source with checkinstall. You need to have [[UbuntuHelp:AutoApt|auto-apt]] installed!
 
Instead of
 
Instead of
 
<pre><nowiki>
 
<pre><nowiki>
第46行: 第46行:
 
</nowiki></pre>
 
</nowiki></pre>
 
== Related Links ==
 
== Related Links ==
* [[SynapticHowto]]
+
* [[UbuntuHelp:SynapticHowto]]
* [[InstallingSoftware]]
+
* [[UbuntuHelp:InstallingSoftware]]
* [[CompilingSoftware]]
+
* [[UbuntuHelp:CompilingSoftware]]
* [[http://www.asic-linux.com.mx/~izto/checkinstall/|The checkinstall web site]]
+
* [http://www.asic-linux.com.mx/~izto/checkinstall/ The checkinstall web site]
 
----
 
----
 
[[category:CategorySoftware]] [[category:CategoryCommandLine]]
 
[[category:CategorySoftware]] [[category:CategoryCommandLine]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月19日 (日) 14:37的版本


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. {{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png%7D%7D 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.

Installation

Install the package checkinstall from the Repositories. For help on installing software in Ubuntu, see UbuntuHelp:InstallingSoftware. A quick method via the terminal for those who like to copy and paste:

sudo aptitude install checkinstall

Usage

Instead of

sudo make install
you will use
sudo checkinstall

The installed package can then also easily be removed via Synaptic or via the terminal:

sudo dpkg -r packagename

Example:

sudo dpkg -r pidgin

{{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 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 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