FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 01-08-2009, 12:32 AM
Jeff D
 
Default extract package name given a filename

On Wed, 7 Jan 2009, Harry Putnam wrote:

> Last time I ran debian was several yrs ago.. back then I learned a way
> using dpkg to extract the packagename of files found on the
> machine... Assuming they came in using apt and dpkg.
>
> I even kept a note about it which of course is no where to be found
> now that I need it again.
>
> Anyone know how to find which package installed a give file?

something like this:
$ dpkg -S /bin/bash
bash: /bin/bash

--
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 01-08-2009, 02:32 AM
Ron Johnson
 
Default extract package name given a filename

On 01/07/09 19:32, Jeff D wrote:

On Wed, 7 Jan 2009, Harry Putnam wrote:


Last time I ran debian was several yrs ago.. back then I learned a way
using dpkg to extract the packagename of files found on the
machine... Assuming they came in using apt and dpkg.

I even kept a note about it which of course is no where to be found
now that I need it again.

Anyone know how to find which package installed a give file?


something like this:
$ dpkg -S /bin/bash
bash: /bin/bash



Also:
$ apt-file search /bin/bash
bash: /bin/bash
bash: /usr/bin/bashbug
bash-minimal: /bin/bash-minimal
bash-static: /bin/bash-static

--
Ron Johnson, Jr.
Jefferson LA USA

I like my women like I like my coffee - purchased at above-market
rates from eco-friendly organic farming cooperatives in Latin America.


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

Thread Tools




All times are GMT. The time now is 07:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org