特殊:Badtitle/NS100:AutoApt/zh:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Penguinol留言 | 贡献
新页面: {{Translation}}{{From| http://wiki.ubuntu.org.cn/UbuntuHelp:BackupDVD}}{{Translator|Penguinol}}{{Languages|UbuntuHelp:BackupDVD}}== Auto-apt 是用来干什么的? == 当你要 ...
 
Penguinol留言 | 贡献
无编辑摘要
第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 可以搜索那个包可以提供所需的头文件。


==&nbsp;安装 ==<br>&lt;pre&gt;sudo apt-get install auto-apt<br>sudo auto-apt update<br>sudo auto-apt updatedb &amp;amp;&amp;amp; sudo auto-apt update-local&lt;/pre&gt;
==&nbsp;安装 ==<br>&lt;pre&gt;sudo apt-get install auto-apt<br>sudo auto-apt update<br>sudo auto-apt updatedb &amp;amp;&amp;amp; sudo auto-apt update-local&lt;/pre&gt;


<br>==&nbsp;用法


==&nbsp;用法
<br>==
 
 
==
 


<br>


搜索头文件:<br>&lt;pre&gt;auto-apt search [headerfile.h]&lt;/pre&gt;<br>例如:<br>&lt;pre&gt;auto-apt search Xlib.h&lt;/pre&gt;<br>https://help.ubuntu.com/community/IconsPage?action=AttachFile&amp;amp;do=get&amp;amp;target=IconTip.png 你可以结合[[UbuntuHelp:CheckInstall|CheckInstall]]一起使用,或者你可以尝试使用Ubuntu:AutoDeb,它结合了上述两个软件和其他的一些附加工具。
搜索头文件:<br>&lt;pre&gt;auto-apt search [headerfile.h]&lt;/pre&gt;<br>例如:<br>&lt;pre&gt;auto-apt search Xlib.h&lt;/pre&gt;<br>https://help.ubuntu.com/community/IconsPage?action=AttachFile&amp;amp;do=get&amp;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的版本

{{#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 &amp;&amp; sudo auto-apt update-local</pre>


== 用法


==


搜索头文件:
<pre>auto-apt search [headerfile.h]</pre>
例如:
<pre>auto-apt search Xlib.h</pre>
IconsPage?action=AttachFile&amp;do=get&amp;target=IconTip.png 你可以结合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