[wiki]AutoApt
发表于 : 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
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