特殊:Badtitle/NS100:AutoApt/zh:修订间差异
新页面: {{Translation}}{{From| http://wiki.ubuntu.org.cn/UbuntuHelp:BackupDVD}}{{Translator|Penguinol}}{{Languages|UbuntuHelp:BackupDVD}}== Auto-apt 是用来干什么的? == 当你要 ... |
无编辑摘要 |
||
第1行: | 第1行: | ||
{{Translation}}{{From| http://wiki.ubuntu.org.cn/UbuntuHelp:BackupDVD}}{{Translator|Penguinol}}{{Languages|UbuntuHelp:BackupDVD}}== Auto-apt 是用来干什么的? == | {{Translation}}{{From| http://wiki.ubuntu.org.cn/UbuntuHelp:BackupDVD}}{{Translator|Penguinol}}{{Languages|UbuntuHelp:BackupDVD}}== Auto-apt 是用来干什么的? == | ||
<br> | |||
<br>当你要 | |||
<br>从源代码编译一个程序,却因为缺少头文件而失败时,Auto-apt 可以搜索那个包可以提供所需的头文件。 | |||
从源代码编译一个程序,却因为缺少头文件而失败时,Auto-apt 可以搜索那个包可以提供所需的头文件。 | |||
== 安装 ==<br><pre>sudo apt-get install auto-apt<br>sudo auto-apt update<br>sudo auto-apt updatedb &amp;&amp; sudo auto-apt update-local</pre> | == 安装 ==<br><pre>sudo apt-get install auto-apt<br>sudo auto-apt update<br>sudo auto-apt updatedb &amp;&amp; sudo auto-apt update-local</pre> | ||
<br>== 用法 | |||
== | <br>== | ||
<br> | |||
搜索头文件:<br><pre>auto-apt search [headerfile.h]</pre><br>例如:<br><pre>auto-apt search Xlib.h</pre><br>https://help.ubuntu.com/community/IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png 你可以结合[[UbuntuHelp:CheckInstall|CheckInstall]]一起使用,或者你可以尝试使用Ubuntu:AutoDeb,它结合了上述两个软件和其他的一些附加工具。 | 搜索头文件:<br><pre>auto-apt search [headerfile.h]</pre><br>例如:<br><pre>auto-apt search Xlib.h</pre><br>https://help.ubuntu.com/community/IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png 你可以结合[[UbuntuHelp:CheckInstall|CheckInstall]]一起使用,或者你可以尝试使用Ubuntu:AutoDeb,它结合了上述两个软件和其他的一些附加工具。 | ||
== Commands == | == Commands == | ||
run - Enter auto-apt environment run [command [cmdarg]] update - Retrieve new lists of Contents (available file list) update updatedb - Regenerate lists of Contents (available file list, no download) updatedb update-local - Generate installed file lists update-local merge - Merge lists of Contents merge del - Delete package list del package check - Check which package will provide the filename check [-v] [-f] filename list - List filelist in dbfile list [-v] [-f] search - Search package by filename (grep) search [-v] [-f] pattern debuild - debuild with auto-apt useful to get build-depends: status - Report current environments (auto-apt or not) For some commands, command name with -local suffix, it will use pkgfiles.db, which is created by update-local command, instead of pkgcontents.db | run - Enter auto-apt environment run [command [cmdarg]] update - Retrieve new lists of Contents (available file list) update updatedb - Regenerate lists of Contents (available file list, no download) updatedb update-local - Generate installed file lists update-local merge - Merge lists of Contents merge del - Delete package list del package check - Check which package will provide the filename check [-v] [-f] filename list - List filelist in dbfile list [-v] [-f] search - Search package by filename (grep) search [-v] [-f] pattern debuild - debuild with auto-apt useful to get build-depends: status - Report current environments (auto-apt or not) For some commands, command name with -local suffix, it will use pkgfiles.db, which is created by update-local command, instead of pkgcontents.db | ||
[[Category:UbuntuHelp]] | [[Category:UbuntuHelp]] |
2008年1月20日 (日) 06:42的版本
文章出处: |
{{#if: | [ http://wiki.ubuntu.org.cn/UbuntuHelp:BackupDVD {{{2}}}] | http://wiki.ubuntu.org.cn/UbuntuHelp:BackupDVD }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/af | • {{#if: UbuntuHelp:BackupDVD|Afrikaans| [[::AutoApt/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ar | • {{#if: UbuntuHelp:BackupDVD|العربية| [[::AutoApt/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/az | • {{#if: UbuntuHelp:BackupDVD|azərbaycanca| [[::AutoApt/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/bcc | • {{#if: UbuntuHelp:BackupDVD|جهلسری بلوچی| [[::AutoApt/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/bg | • {{#if: UbuntuHelp:BackupDVD|български| [[::AutoApt/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/br | • {{#if: UbuntuHelp:BackupDVD|brezhoneg| [[::AutoApt/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ca | • {{#if: UbuntuHelp:BackupDVD|català| [[::AutoApt/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/cs | • {{#if: UbuntuHelp:BackupDVD|čeština| [[::AutoApt/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/de | • {{#if: UbuntuHelp:BackupDVD|Deutsch| [[::AutoApt/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/el | • {{#if: UbuntuHelp:BackupDVD|Ελληνικά| [[::AutoApt/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/es | • {{#if: UbuntuHelp:BackupDVD|español| [[::AutoApt/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/fa | • {{#if: UbuntuHelp:BackupDVD|فارسی| [[::AutoApt/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/fi | • {{#if: UbuntuHelp:BackupDVD|suomi| [[::AutoApt/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/fr | • {{#if: UbuntuHelp:BackupDVD|français| [[::AutoApt/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/gu | • {{#if: UbuntuHelp:BackupDVD|ગુજરાતી| [[::AutoApt/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/he | • {{#if: UbuntuHelp:BackupDVD|עברית| [[::AutoApt/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/hu | • {{#if: UbuntuHelp:BackupDVD|magyar| [[::AutoApt/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/id | • {{#if: UbuntuHelp:BackupDVD|Bahasa Indonesia| [[::AutoApt/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/it | • {{#if: UbuntuHelp:BackupDVD|italiano| [[::AutoApt/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ja | • {{#if: UbuntuHelp:BackupDVD|日本語| [[::AutoApt/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ko | • {{#if: UbuntuHelp:BackupDVD|한국어| [[::AutoApt/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ksh | • {{#if: UbuntuHelp:BackupDVD|Ripoarisch| [[::AutoApt/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/mr | • {{#if: UbuntuHelp:BackupDVD|मराठी| [[::AutoApt/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ms | • {{#if: UbuntuHelp:BackupDVD|Bahasa Melayu| [[::AutoApt/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/nl | • {{#if: UbuntuHelp:BackupDVD|Nederlands| [[::AutoApt/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/no | • {{#if: UbuntuHelp:BackupDVD|norsk| [[::AutoApt/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/oc | • {{#if: UbuntuHelp:BackupDVD|occitan| [[::AutoApt/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/pl | • {{#if: UbuntuHelp:BackupDVD|polski| [[::AutoApt/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/pt | • {{#if: UbuntuHelp:BackupDVD|português| [[::AutoApt/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ro | • {{#if: UbuntuHelp:BackupDVD|română| [[::AutoApt/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/ru | • {{#if: UbuntuHelp:BackupDVD|русский| [[::AutoApt/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/si | • {{#if: UbuntuHelp:BackupDVD|සිංහල| [[::AutoApt/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/sq | • {{#if: UbuntuHelp:BackupDVD|shqip| [[::AutoApt/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/sr | • {{#if: UbuntuHelp:BackupDVD|српски / srpski| [[::AutoApt/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/sv | • {{#if: UbuntuHelp:BackupDVD|svenska| [[::AutoApt/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/th | • {{#if: UbuntuHelp:BackupDVD|ไทย| [[::AutoApt/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/tr | • {{#if: UbuntuHelp:BackupDVD|Türkçe| [[::AutoApt/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/vi | • {{#if: UbuntuHelp:BackupDVD|Tiếng Việt| [[::AutoApt/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/yue | • {{#if: UbuntuHelp:BackupDVD|粵語| [[::AutoApt/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/zh | • {{#if: UbuntuHelp:BackupDVD|中文| [[::AutoApt/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/zh-hans | • {{#if: UbuntuHelp:BackupDVD|中文(简体)| [[::AutoApt/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BackupDVD | UbuntuHelp:BackupDVD | {{#if: | :}}AutoApt/zh}}/zh-hant | • {{#if: UbuntuHelp:BackupDVD|中文(繁體)| [[::AutoApt/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BackupDVD|:AutoApt/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AutoApt/zh/zh | | {{#ifexist: AutoApt/zh/zh | | {{#ifeq: {{#titleparts:AutoApt/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AutoApt/zh|1|-1|}} | zh | | }}
Auto-apt 是用来干什么的?
当你要
从源代码编译一个程序,却因为缺少头文件而失败时,Auto-apt 可以搜索那个包可以提供所需的头文件。
== 安装 ==
<pre>sudo apt-get install auto-apt
sudo auto-apt update
sudo auto-apt updatedb && sudo auto-apt update-local</pre>
== 用法
==
搜索头文件:
<pre>auto-apt search [headerfile.h]</pre>
例如:
<pre>auto-apt search Xlib.h</pre>
你可以结合CheckInstall一起使用,或者你可以尝试使用Ubuntu:AutoDeb,它结合了上述两个软件和其他的一些附加工具。
Commands
run - Enter auto-apt environment run [command [cmdarg]] update - Retrieve new lists of Contents (available file list) update updatedb - Regenerate lists of Contents (available file list, no download) updatedb update-local - Generate installed file lists update-local merge - Merge lists of Contents merge del - Delete package list del package check - Check which package will provide the filename check [-v] [-f] filename list - List filelist in dbfile list [-v] [-f] search - Search package by filename (grep) search [-v] [-f] pattern debuild - debuild with auto-apt useful to get build-depends: status - Report current environments (auto-apt or not) For some commands, command name with -local suffix, it will use pkgfiles.db, which is created by update-local command, instead of pkgcontents.db