Re: Three short apt/dpkg questions
Thomas Adam wrote: > > 2. Is there a way to ask the system which package owns a specific > > installed file? > > dpkg -S file Even faster: dlocate file apt-cache show dlocate Very nice. Bob signature.asc Description: Digital signature
Re: Three short apt/dpkg questions
On Thu, Jun 16, 2005 at 10:24:36PM -0400, Michael Marsh wrote: > On 6/16/05, Charlie Zender <[EMAIL PROTECTED]> wrote: > > 1. Which package contains the man-pages for C-library functions like > > sprintf()? > > manpages-dev > > > 2. Is there a way to ask the system which package owns a specific > > installed file? > > $ dpkg -S /usr/share/man/man3/sprintf.3.gz > manpages-dev: /usr/share/man/man3/sprintf.3.gz > > > 3. Is there a way to determine the name of the (non-installed) package > > which owns a particular (non-installed) filename? e.g., which package > > will install the file printf.1.gz? > > http://www.debian.org/distrib/packages > > > Look for "Search the contents of packages". Hi, 'apt-file' will do the same thing (it downloads a db of the info) and works offline. cheers, Kev -- counter.li.org #238656 -- goto counter.li.org and be counted! `$' $' $ $ _ ,d$$$g$ ,d$$$b. $,d$$$b`$' g$b $,d$$b ,$P' `$ ,$P' `Y$ $$' `$ $ "' `$ $$' `$ $$ $ $$g$ $ $ $ ,$P"" $ $$ `$g. ,$$ `$$._ _. $ _,g$P $ `$b. ,$$ $$ `Y$$P'$. `YP $$$P"' ,$. `Y$$P'$ $. ,$. signature.asc Description: Digital signature
Re: Three short apt/dpkg questions
--- Charlie Zender <[EMAIL PROTECTED]> wrote: > Hi, > > 1. Which package contains the man-pages for C-library functions like > sprintf()? manpages-dev > 2. Is there a way to ask the system which package owns a specific > installed file? dpkg -S file > 3. Is there a way to determine the name of the (non-installed) > package > which owns a particular (non-installed) filename? e.g., which package > > will install the file printf.1.gz? apt-get install apt-file && \ apt-file update && \ apt-file search -- Thomas Adam. ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Three short apt/dpkg questions
On 6/16/05, Charlie Zender <[EMAIL PROTECTED]> wrote: > 1. Which package contains the man-pages for C-library functions like > sprintf()? manpages-dev > 2. Is there a way to ask the system which package owns a specific > installed file? $ dpkg -S /usr/share/man/man3/sprintf.3.gz manpages-dev: /usr/share/man/man3/sprintf.3.gz > 3. Is there a way to determine the name of the (non-installed) package > which owns a particular (non-installed) filename? e.g., which package > will install the file printf.1.gz? http://www.debian.org/distrib/packages Look for "Search the contents of packages". -- Michael A. Marsh http://www.umiacs.umd.edu/~mmarsh http://mamarsh.blogspot.com