特殊:Badtitle/NS100:CheckInstall
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CheckInstall }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/af | • {{#if: UbuntuHelp:CheckInstall|Afrikaans| [[::CheckInstall/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ar | • {{#if: UbuntuHelp:CheckInstall|العربية| [[::CheckInstall/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/az | • {{#if: UbuntuHelp:CheckInstall|azərbaycanca| [[::CheckInstall/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/bcc | • {{#if: UbuntuHelp:CheckInstall|جهلسری بلوچی| [[::CheckInstall/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/bg | • {{#if: UbuntuHelp:CheckInstall|български| [[::CheckInstall/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/br | • {{#if: UbuntuHelp:CheckInstall|brezhoneg| [[::CheckInstall/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ca | • {{#if: UbuntuHelp:CheckInstall|català| [[::CheckInstall/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/cs | • {{#if: UbuntuHelp:CheckInstall|čeština| [[::CheckInstall/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/de | • {{#if: UbuntuHelp:CheckInstall|Deutsch| [[::CheckInstall/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/el | • {{#if: UbuntuHelp:CheckInstall|Ελληνικά| [[::CheckInstall/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/es | • {{#if: UbuntuHelp:CheckInstall|español| [[::CheckInstall/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/fa | • {{#if: UbuntuHelp:CheckInstall|فارسی| [[::CheckInstall/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/fi | • {{#if: UbuntuHelp:CheckInstall|suomi| [[::CheckInstall/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/fr | • {{#if: UbuntuHelp:CheckInstall|français| [[::CheckInstall/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/gu | • {{#if: UbuntuHelp:CheckInstall|ગુજરાતી| [[::CheckInstall/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/he | • {{#if: UbuntuHelp:CheckInstall|עברית| [[::CheckInstall/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/hu | • {{#if: UbuntuHelp:CheckInstall|magyar| [[::CheckInstall/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/id | • {{#if: UbuntuHelp:CheckInstall|Bahasa Indonesia| [[::CheckInstall/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/it | • {{#if: UbuntuHelp:CheckInstall|italiano| [[::CheckInstall/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ja | • {{#if: UbuntuHelp:CheckInstall|日本語| [[::CheckInstall/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ko | • {{#if: UbuntuHelp:CheckInstall|한국어| [[::CheckInstall/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ksh | • {{#if: UbuntuHelp:CheckInstall|Ripoarisch| [[::CheckInstall/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/mr | • {{#if: UbuntuHelp:CheckInstall|मराठी| [[::CheckInstall/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ms | • {{#if: UbuntuHelp:CheckInstall|Bahasa Melayu| [[::CheckInstall/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/nl | • {{#if: UbuntuHelp:CheckInstall|Nederlands| [[::CheckInstall/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/no | • {{#if: UbuntuHelp:CheckInstall|norsk| [[::CheckInstall/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/oc | • {{#if: UbuntuHelp:CheckInstall|occitan| [[::CheckInstall/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/pl | • {{#if: UbuntuHelp:CheckInstall|polski| [[::CheckInstall/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/pt | • {{#if: UbuntuHelp:CheckInstall|português| [[::CheckInstall/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ro | • {{#if: UbuntuHelp:CheckInstall|română| [[::CheckInstall/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/ru | • {{#if: UbuntuHelp:CheckInstall|русский| [[::CheckInstall/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/si | • {{#if: UbuntuHelp:CheckInstall|සිංහල| [[::CheckInstall/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/sq | • {{#if: UbuntuHelp:CheckInstall|shqip| [[::CheckInstall/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/sr | • {{#if: UbuntuHelp:CheckInstall|српски / srpski| [[::CheckInstall/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/sv | • {{#if: UbuntuHelp:CheckInstall|svenska| [[::CheckInstall/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/th | • {{#if: UbuntuHelp:CheckInstall|ไทย| [[::CheckInstall/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/tr | • {{#if: UbuntuHelp:CheckInstall|Türkçe| [[::CheckInstall/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/vi | • {{#if: UbuntuHelp:CheckInstall|Tiếng Việt| [[::CheckInstall/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/yue | • {{#if: UbuntuHelp:CheckInstall|粵語| [[::CheckInstall/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/zh | • {{#if: UbuntuHelp:CheckInstall|中文| [[::CheckInstall/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/zh-hans | • {{#if: UbuntuHelp:CheckInstall|中文(简体)| [[::CheckInstall/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CheckInstall | UbuntuHelp:CheckInstall | {{#if: | :}}CheckInstall}}/zh-hant | • {{#if: UbuntuHelp:CheckInstall|中文(繁體)| [[::CheckInstall/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CheckInstall|:CheckInstall|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CheckInstall/zh | | {{#ifexist: CheckInstall/zh | | {{#ifeq: {{#titleparts:CheckInstall|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CheckInstall|1|-1|}} | zh | | }}
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/[[UbuntuHelp:IconsPage?|IconsPage]]??action=AttachFile&do=get&target=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.
Warning!
CheckInstall occasionally sets incorrect access permissions for your root directory (/), resulting in the inability to execute most commands or perform most operations on the system. This seems to happen if you interrupt CheckInstall (for instance, using Ctrl+C). Please have a LiveCD ready for recovery, or be sure you can access the recovery mode, before using CheckInstall. If this problem happens to you, you will need to use the following command as root to reset the correct permissions.
chmod 755 /
You may want to run checkinstall with the command line
checkinstall --install=no
without using sudo
, to avoid the problem, and then install the generated Debian package manually.
See bug #45763 for more information.
Installation
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
sudo dpkg -r packagename
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
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 Credits: Ubuntu-fr.org