[ltp] Ubuntu - impressed

Florian Reitmeir linux-thinkpad@linux-thinkpad.org
Thu, 2 Nov 2006 15:31:31 +0100


> P.S. Does anyone know whether apt has an equivalent of Mandriva's 
> "urpmf"?  Urpmf allows you to search for packages by file. Eg
> 
>   urpmf  raw1394.h
> 
> says "What package do I have to install to get the file raw1394.h" ?
> 
> This is very useful when compiling, and you don't know what package 
> contains the library headers that you want.
> 
> I solved this particular problem by running urpmf on my Mandriva box (it 
> turns out this header isn't in a libX, but in the kernel source) - but I 
> can't find out how to do it in Ubuntu.

normally you do ..

dpkg -S <file> .. which returns a list of packages containing the file

for compile

apt-get source <name>
apt-get build-dep <name>
go in the package directory.. edit.. then
dpkg-buildpackage

and then there is apt-file ..

-- 
Florian Reitmeir