分页: 1 / 1

[wiki]AutoApt

发表于 : 2005-08-02 11:11
oneleaf
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

发表于 : 2005-08-03 17:25
millenniumdark
What is auto-apt for?
auto-apt是干啥的?

发表于 : 2005-08-03 17:28
millenniumdark
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文件。

发表于 : 2005-08-03 17:29
millenniumdark
Install
安装

发表于 : 2005-08-03 17:30
millenniumdark
sudo apt-get install auto-apt
sudo auto-apt update
auto-apt updatedb && auto-apt update-local

发表于 : 2005-08-03 17:31
millenniumdark
Usage
使用

发表于 : 2005-08-03 17:37
millenniumdark
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可以与其协同使用。

发表于 : 2005-08-03 17:59
millenniumdark
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

完成

发表于 : 2005-08-03 18:02
millenniumdark
草草翻完
粗粗讀了一遍

发表于 : 2005-08-22 21:32
oneleaf

发表于 : 2006-07-30 21:55
millenniumdark
现在youyou又翻了一遍,我把两篇译文结合一下。总体上比我翻的好,我只改了两处。
http://wiki.ubuntu.org.cn/AutoApt