Tuxicity's source

January 14, 2007

apt-file ; howto easy locate and search packages without having to install them.

Filed under: Debian, Kubuntu, Tuxicity, Ubuntu — tuxicity @ 10:23 am

apt-file is a command line tool for searching packages for the APT packaging system.Unlike apt-cache, you can search in which package a file is included or list the contents of a package without installing or fetching it.

apt-file is available in the universe repository of Ubuntu and of course also available in the Debian repositories.
Install :

sudo apt-get install apt-file

Now you need to update apt-file:

sudo apt-file update

Now you can find, locate, packages with ease.
for example:

apt-file -F firefox

gives this result :

tuxi[~]$ apt-file search -F firefox
firefox: usr/bin/firefox
firefox: usr/bin/mozilla-firefox
firefox: usr/lib/firefox/firefox
firefox: usr/lib/mime/packages/firefox
firefox: usr/lib/mozilla-firefox
firefox: usr/share/menu/firefox

Other Example:

apt-file list -l firefox

tuxi[~]$ apt-file list -l firefox

For more options:

apt-file –help


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: