[wiki]AutoApt
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
[wiki]AutoApt
What is auto-apt for?
when you want to build a program from source and it fails due to missing headers. auto-apt can search what package would provide the header files.
Install
sudo apt-get install auto-apt
sudo auto-apt update
auto-apt updatedb && auto-apt update-local
Usage
Search for a header file:
auto-apt search [headerfile.h]
Example:
auto-apt search Xlib.h
IconTip.png You can use it combined with CheckInstall
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
https://wiki.ubuntu.com/AutoApt
when you want to build a program from source and it fails due to missing headers. auto-apt can search what package would provide the header files.
Install
sudo apt-get install auto-apt
sudo auto-apt update
auto-apt updatedb && auto-apt update-local
Usage
Search for a header file:
auto-apt search [headerfile.h]
Example:
auto-apt search Xlib.h
IconTip.png You can use it combined with CheckInstall
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
https://wiki.ubuntu.com/AutoApt
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
Commands
命令
run - Enter auto-apt environment
run ——进入auto-apt环境
run [command [cmdarg]]
update - Retrieve new lists of Contents (available file list)
update——取得新的内容列表(可用文件列表)
update
updatedb - Regenerate lists of Contents (available file list, no download)
updatedb——重新创建内容列表(可用文件列表,不下载)
updatedb
update-local - Generate installed file lists
update-local——创建已安装文件列表
update-local
merge - Merge lists of Contents
merge——混合内容列表
merge
del - Delete package list
del——删除安装包列表
del package
check - Check which package will provide the filename
check——检查哪个安装包提供文件名
check [-v] [-f] filename
list - List filelist in dbfile
list——给出dbfile中的文件列表
list [-v] [-f]
search - Search package by filename (grep)
search——通过文件名搜索安装包(调用grep)
search [-v] [-f] pattern
debuild - debuild with auto-apt
debuild——用auto-apt来debuild
useful to get build-depends:
用来解决安装时的依赖问题很有用
status - Report current environments (auto-apt or not)
status——报告当前环境(是否为auto-apt)
For some commands, command name with -local suffix, it will use pkgfiles.db, which is created by update-local command, instead of pkgcontents.db
一些名称含有-local后缀的命令将使用pkgfiles.db(由update-local命令创建),而不是pkgcontents.db。
https://wiki.ubuntu.com/AutoApt
命令
run - Enter auto-apt environment
run ——进入auto-apt环境
run [command [cmdarg]]
update - Retrieve new lists of Contents (available file list)
update——取得新的内容列表(可用文件列表)
update
updatedb - Regenerate lists of Contents (available file list, no download)
updatedb——重新创建内容列表(可用文件列表,不下载)
updatedb
update-local - Generate installed file lists
update-local——创建已安装文件列表
update-local
merge - Merge lists of Contents
merge——混合内容列表
merge
del - Delete package list
del——删除安装包列表
del package
check - Check which package will provide the filename
check——检查哪个安装包提供文件名
check [-v] [-f] filename
list - List filelist in dbfile
list——给出dbfile中的文件列表
list [-v] [-f]
search - Search package by filename (grep)
search——通过文件名搜索安装包(调用grep)
search [-v] [-f] pattern
debuild - debuild with auto-apt
debuild——用auto-apt来debuild
useful to get build-depends:
用来解决安装时的依赖问题很有用
status - Report current environments (auto-apt or not)
status——报告当前环境(是否为auto-apt)
For some commands, command name with -local suffix, it will use pkgfiles.db, which is created by update-local command, instead of pkgcontents.db
一些名称含有-local后缀的命令将使用pkgfiles.db(由update-local命令创建),而不是pkgcontents.db。
https://wiki.ubuntu.com/AutoApt
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
完成
草草翻完
粗粗讀了一遍
粗粗讀了一遍
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系:
现在youyou又翻了一遍,我把两篇译文结合一下。总体上比我翻的好,我只改了两处。
http://wiki.ubuntu.org.cn/AutoApt
http://wiki.ubuntu.org.cn/AutoApt