[wiki]AutoApt

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

[wiki]AutoApt

#1

帖子 oneleaf » 2005-08-02 11:11

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
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#2

帖子 millenniumdark » 2005-08-03 17:25

What is auto-apt for?
auto-apt是干啥的?
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#3

帖子 millenniumdark » 2005-08-03 17:28

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.
当你想从源码安装软件,却因为缺少header信息而失败的时候,auto-apt可以搜索什么安装包可以提供header文件。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#4

帖子 millenniumdark » 2005-08-03 17:29

Install
安装
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#5

帖子 millenniumdark » 2005-08-03 17:30

sudo apt-get install auto-apt
sudo auto-apt update
auto-apt updatedb && auto-apt update-local
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#6

帖子 millenniumdark » 2005-08-03 17:31

Usage
使用
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#7

帖子 millenniumdark » 2005-08-03 17:37

Usage
使用

Search for a header file:
搜索header文件
auto-apt search [headerfile.h]

Example:
例如:
auto-apt search Xlib.h

IconTip.png You can use it combined with CheckInstall
CheckInstall可以与其协同使用。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#8

帖子 millenniumdark » 2005-08-03 17:59

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
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

完成

#9

帖子 millenniumdark » 2005-08-03 18:02

草草翻完
粗粗讀了一遍
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#10

帖子 oneleaf » 2005-08-22 21:32

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#11

帖子 millenniumdark » 2006-07-30 21:55

现在youyou又翻了一遍,我把两篇译文结合一下。总体上比我翻的好,我只改了两处。
http://wiki.ubuntu.org.cn/AutoApt
回复