Debian Admin - Your way to Debian World

November 26, 2006

Package search by file and on-demand package installation Using auto-apt

by @ 9:22 am. Filed under Package Mgmt

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

auto-apt is a program that checks file access of programs running within auto-apt environments. If a program will access a file of uninstalled package, auto-apt will install the package containing the file, by using apt-get.

Install auto-apt in debian

#apt-get install auto-apt

Install auto-apt in Ubuntu

sudo apt-get install auto-apt

auto-apt Syntax

auto-apt [options] command [arg …]

Available Options

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 heck [-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

Options

[-s] [-y] [-q] [-i] [-x] [-X]
[-a dists] [-p hooks]
[-D pkgcontents.bin] [-F pkgfiles.bin] [-L detect.list]

Example

You’re compiling a program and, all of a sudden there’s an error because it needs a .h file you don’t have. The program auto-apt can save you from such scenarios. It asks you to install packages if they’re needed, stopping the relevant process and continuing once the package is installed.

What you do, basically, is run

# auto-apt run command

Where `command’ is the command to be executed that may need some unavailable file. For example

# auto-apt run ./configure

It will then ask to install the needed packages and call apt-get automatically. If you’re running X, a graphical interface will replace the default text interface.

Auto-apt keeps databases which need to be kept up-to-date in order for it to be effective. This is achieved by calling the following commands .

#auto-apt update

#auto-apt updatedb

#auto-apt update-local

For more information and options available foe auto-apt check man page

Tags: , , , , , ,

You may also be interested in...

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

WidgetBucks - Trend Watch - WidgetBucks.com

Related Links:


WidgetBucks - Trend Watch - WidgetBucks.com

Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.