“UbuntuHelp:AutoApt/zh”的版本间的差异
来自Ubuntu中文
第21行: | 第21行: | ||
== 命令 == | == 命令 == | ||
− | run - | + | 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 - 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:58的版本
点击翻译: |
English • 中文 |
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 - 检查哪个文件能够提供文件 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