How to search for files among Debian Packages
with (apt-file)
Every now and then I had to look for specific files let's
say:
libnet.h . I had to consult some time ago the
guys
in freenode about a debian tool that enables me to do that.
Thanks to the good buddies in freenode I was pointed to
apt-file
Now isssuing commands:
noah:/home/hipo# apt-file update
Downloading Index http://ftp.bg.debian.org/debian/dists/unstable/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
102 2053 102 2053 0 0 23458 0 --:--:-- --:--:-- --:--:-- 111k
Calculating old sha1sum...
File is up-to-date.
Ignoring source without Contents File:
http://dl.google.com/linux/deb/dists/stable/Contents-amd64.gz
noah:/home/hipo# apt-file search libnet.h
libaudio-dev: /usr/include/audio/Alibnet.h
libnet1-dev: /usr/include/libnet.h
libnet1-dev: /usr/share/man/man3/libnet.h.3.gz
And there we go, Now I know that libnet.h is included in
libnet1-dev package, and therefore can
install it with:
noah:/home/hipo# apt-get install libnet1-dev
..