l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:13

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] finding what package provides a file in debian (cool!)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] finding what package provides a file in debian (cool!)

here's a nice one that every debian user should know about.

suppose you want to compile a program, and gcc complains that it can't find a
library, say, SDL_video.h.   and you have no idea what debian package provides
this file.   use auto-apt:

   # auto-apt search SDL_video.h
   usr/include/SDL/SDL_video.h     devel/libsdl1.1-dev

so the package libsdl1.1-dev provides the SDL_video.h

it's kind of like dpkg -L in reverse.   dpkg -L tells you what files a
particular package will install on your system.   auto-apt tells you
what packages will provide you with that particular file.

but there's more here.  this very cool feature isn't even what auto-apt is
all about.  from the man page:

       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.



----- Forwarded message from Charles Baker <rascharles@yahoo.com> -----

Date: Fri, 30 Nov 2001 06:44:09 -0800 (PST)
From: Charles Baker <rascharles@yahoo.com>
Subject: Re: X11/Xlib.h X11/xpm.h
To: deb-user <debian-user@lists.debian.org>
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/183563

--- Sean 'Shaleh' Perry <shalehperry@home.com> wrote:
> On 30-Nov-2001 Charles Baker wrote:
> > I just found this neat little doc app for
> windowmaker
> > called wmfortune. I tried to compile it, but it
> can't
> > find these include files: X11/Xlib.h X11/xpm.h .
> What
> > packages do I need to install to get these include
> > files and presumably their implementations? I
> checked
> > and wmfortune is not an official deb package.
> Thanks.
> > 
> Easy answer: xlib-dev.
> Teach a man to fish answer: install auto-apt and
> $ auto-apt search Xlib.h
> usr/X11R6/include/X11/Xlib.h    devel/xlibs-dev

Thanks. I'm falling in love with Debian! The apt suite
of tools is a magnificent piece of work.

Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.

To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

----- End forwarded message -----

PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
PGP Public Key:  finger p@dirac.org
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.