个人工具

“使用auto-apt搜索头文件包”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: == 使用 auto-apt 搜索头文件包 == 原文出处:https://wiki.ubuntu.com/AutoApt 原文作者:RalphWabel 授权许可: * [http://creativecommons.org/licenses/by-sa/2.0/ 创...)
 
(正在重定向到 UbuntuHelp:AutoApt/zh
 
第1行: 第1行:
== 使用 auto-apt 搜索头文件包 ==
+
#REDIRECT[[UbuntuHelp:AutoApt/zh]]
 
+
原文出处:https://wiki.ubuntu.com/AutoApt
+
 
+
原文作者:RalphWabel
+
 
+
授权许可:
+
* [http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]
+
* [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证]
+
 
+
翻译人员:youyou  MillenniumDark
+
 
+
校正人员:MillenniumDark
+
 
+
贡献人员:
+
 
+
适用版本:
+
文章状态:翻译完成
+
----
+
 
+
 
+
 
+
=== auto-apt用来做什么? ===
+
当你想从源码安装软件,但是因为找不到头文件而失败,auto-apt可以搜索能够提供头文件的包。
+
 
+
=== 安装 ===
+
<pre><nowiki>
+
sudo apt-get install auto-apt
+
sudo auto-apt update
+
sudo auto-apt updatedb && sudo auto-apt update-local
+
</nowiki></pre>
+
=== 用途 ===
+
搜索一个头文件
+
 
+
<pre><nowiki>
+
auto-apt search [headerfile.h]
+
</nowiki></pre>
+
例子:
+
 
+
<pre><nowiki>
+
auto-apt search Xlib.h
+
</nowiki></pre>
+
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png 你可以将它和CheckInstall混合使用,或者你可以试试AutoDeb,后者综合了两者而且提供一些附加的功能。
+
 
+
.
+
=== 命令 ===
+
* run - 进入auto-apt环境
+
*      run [command [cmdarg]]
+
* update - 获取新的目录列表(可用文件列表)
+
*      update
+
*  updatedb - 重新产生目录列表(可用文件列表,并不下载)
+
*      updatedb
+
* update-local - 产生已经安装的文件列表
+
*      update-local
+
* merge - 融合-融合目录列表
+
.
+
*      merge
+
* del -                    删除包列表
+
*      del package
+
* check - 检查哪一个包将提供这个文件名
+
*      check [-v] [-f] filename
+
* list -                              以db文件形式列出文件列表
+
*      list [-v] [-f]
+
* search - 通过文件名搜索包(调用grep)
+
*      search [-v] [-f] pattern
+
* debuild -                                用auto-apt建立依赖关系
+
*        useful to get build-depends:
+
* status -      状态-报告当前环境(是否auto-apt)
+
.
+
* 对于某些命令,例如带-local后缀的命令,将使用由update-local 命令创建的pkgfiles.db,而不是pkgcontents.db
+
----
+

2008年4月27日 (日) 09:56的最新版本

重定向至: