个人工具

“UbuntuHelp:AutoApt”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/AutoApt}} {{Languages|UbuntuHelp:AutoApt}} == What is auto-apt for? == When you want to build a program from source and it fails due to missing he...)
 
第3行: 第3行:
 
== What is auto-apt for? ==
 
== 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.
 
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 ==
 
== Install ==
 
<pre><nowiki>
 
<pre><nowiki>
第10行: 第9行:
 
sudo auto-apt updatedb && sudo auto-apt update-local
 
sudo auto-apt updatedb && sudo auto-apt update-local
 
</nowiki></pre>
 
</nowiki></pre>
 
 
== Usage ==
 
== Usage ==
 
Search for a header file:
 
Search for a header file:
第16行: 第14行:
 
auto-apt search [headerfile.h]
 
auto-apt search [headerfile.h]
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Example:
 
Example:
 
<pre><nowiki>
 
<pre><nowiki>
 
auto-apt search Xlib.h
 
auto-apt search Xlib.h
 
</nowiki></pre>
 
</nowiki></pre>
 
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png You can use it combined with CheckInstall, or you could try using Ubuntu:AutoDeb, which combines the two as well as providing some additional facilities.
 
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconTip.png You can use it combined with CheckInstall, or you could try using Ubuntu:AutoDeb, which combines the two as well as providing some additional facilities.
 
 
== Commands ==
 
== Commands ==
 
run - Enter auto-apt environment
 
run - Enter auto-apt environment
第46行: 第41行:
 
useful to get build-depends:
 
useful to get build-depends:
 
status - Report current environments (auto-apt or not)
 
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
 
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]]

2007年11月30日 (五) 16:10的版本


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
sudo auto-apt updatedb && sudo auto-apt update-local

Usage

Search for a header file:

auto-apt search [headerfile.h]

Example:

auto-apt search Xlib.h

IconsPage?action=AttachFile&do=get&target=IconTip.png You can use it combined with CheckInstall, or you could try using Ubuntu:AutoDeb, which combines the two as well as providing some additional facilities.

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