特殊:Badtitle/NS100:AutoApt/zh:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第21行: | 第21行: | ||
== 命令 == | == 命令 == | ||
run - 进入auto-apt环境 run [command [cmdarg]] | run - 进入auto-apt环境 run [command [cmdarg]] update - 获取最新目录的清单 (可用文件清单) update updatedb - 获取目录清单 (可用文件清单,不下载) updatedb update-local - 生成已安装文件清单 update-local merge - 合并目录清单 merge del - 删除包清单 del package check - 检查哪个文件能够提供 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 | ||
update - 获取最新目录的清单 (可用文件清单) update | |||
updatedb - 获取目录清单 (可用文件清单,不下载) updatedb | |||
update-local - 生成已安装文件清单 update-local | |||
merge - 合并目录清单 merge | |||
del - 删除包清单 del package | |||
check - | |||
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日 (日) 07:01的版本
文章出处: |
{{#if: | [ http://wiki.ubuntu.org.cn/UbuntuHelp:AutoApt {{{2}}}] | http://wiki.ubuntu.org.cn/UbuntuHelp:AutoApt }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/af | • {{#if: UbuntuHelp:AutoApt|Afrikaans| [[::AutoApt/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ar | • {{#if: UbuntuHelp:AutoApt|العربية| [[::AutoApt/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/az | • {{#if: UbuntuHelp:AutoApt|azərbaycanca| [[::AutoApt/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/bcc | • {{#if: UbuntuHelp:AutoApt|جهلسری بلوچی| [[::AutoApt/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/bg | • {{#if: UbuntuHelp:AutoApt|български| [[::AutoApt/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/br | • {{#if: UbuntuHelp:AutoApt|brezhoneg| [[::AutoApt/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ca | • {{#if: UbuntuHelp:AutoApt|català| [[::AutoApt/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/cs | • {{#if: UbuntuHelp:AutoApt|čeština| [[::AutoApt/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/de | • {{#if: UbuntuHelp:AutoApt|Deutsch| [[::AutoApt/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/el | • {{#if: UbuntuHelp:AutoApt|Ελληνικά| [[::AutoApt/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/es | • {{#if: UbuntuHelp:AutoApt|español| [[::AutoApt/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/fa | • {{#if: UbuntuHelp:AutoApt|فارسی| [[::AutoApt/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/fi | • {{#if: UbuntuHelp:AutoApt|suomi| [[::AutoApt/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/fr | • {{#if: UbuntuHelp:AutoApt|français| [[::AutoApt/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/gu | • {{#if: UbuntuHelp:AutoApt|ગુજરાતી| [[::AutoApt/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/he | • {{#if: UbuntuHelp:AutoApt|עברית| [[::AutoApt/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/hu | • {{#if: UbuntuHelp:AutoApt|magyar| [[::AutoApt/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/id | • {{#if: UbuntuHelp:AutoApt|Bahasa Indonesia| [[::AutoApt/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/it | • {{#if: UbuntuHelp:AutoApt|italiano| [[::AutoApt/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ja | • {{#if: UbuntuHelp:AutoApt|日本語| [[::AutoApt/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ko | • {{#if: UbuntuHelp:AutoApt|한국어| [[::AutoApt/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ksh | • {{#if: UbuntuHelp:AutoApt|Ripoarisch| [[::AutoApt/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/mr | • {{#if: UbuntuHelp:AutoApt|मराठी| [[::AutoApt/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ms | • {{#if: UbuntuHelp:AutoApt|Bahasa Melayu| [[::AutoApt/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/nl | • {{#if: UbuntuHelp:AutoApt|Nederlands| [[::AutoApt/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/no | • {{#if: UbuntuHelp:AutoApt|norsk| [[::AutoApt/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/oc | • {{#if: UbuntuHelp:AutoApt|occitan| [[::AutoApt/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/pl | • {{#if: UbuntuHelp:AutoApt|polski| [[::AutoApt/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/pt | • {{#if: UbuntuHelp:AutoApt|português| [[::AutoApt/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ro | • {{#if: UbuntuHelp:AutoApt|română| [[::AutoApt/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/ru | • {{#if: UbuntuHelp:AutoApt|русский| [[::AutoApt/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/si | • {{#if: UbuntuHelp:AutoApt|සිංහල| [[::AutoApt/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/sq | • {{#if: UbuntuHelp:AutoApt|shqip| [[::AutoApt/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/sr | • {{#if: UbuntuHelp:AutoApt|српски / srpski| [[::AutoApt/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/sv | • {{#if: UbuntuHelp:AutoApt|svenska| [[::AutoApt/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/th | • {{#if: UbuntuHelp:AutoApt|ไทย| [[::AutoApt/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/tr | • {{#if: UbuntuHelp:AutoApt|Türkçe| [[::AutoApt/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/vi | • {{#if: UbuntuHelp:AutoApt|Tiếng Việt| [[::AutoApt/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/yue | • {{#if: UbuntuHelp:AutoApt|粵語| [[::AutoApt/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/zh | • {{#if: UbuntuHelp:AutoApt|中文| [[::AutoApt/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/zh-hans | • {{#if: UbuntuHelp:AutoApt|中文(简体)| [[::AutoApt/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AutoApt | UbuntuHelp:AutoApt | {{#if: | :}}AutoApt/zh}}/zh-hant | • {{#if: UbuntuHelp:AutoApt|中文(繁體)| [[::AutoApt/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AutoApt|: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 可以搜索那个包可以提供所需的头文件。
安装
sudo apt-get install auto-apt sudo auto-apt update sudo auto-apt updatedb && sudo auto-apt update-local
用法
搜索头文件:
auto-apt search [headerfile.h]
例如:
auto-apt search Xlib.h
你可以结合CheckInstall一起使用,或者你可以尝试使用Ubuntu:AutoDeb,它结合了上述两个软件和其他的一些附加工具。
命令
run - 进入auto-apt环境 run [command [cmdarg]] update - 获取最新目录的清单 (可用文件清单) update updatedb - 获取目录清单 (可用文件清单,不下载) updatedb update-local - 生成已安装文件清单 update-local merge - 合并目录清单 merge del - 删除包清单 del package check - 检查哪个文件能够提供 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