LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2017, 12:25 AM   #1
Viking559
LQ Newbie
 
Registered: May 2017
Posts: 6

Rep: Reputation: Disabled
Debian: What program belongs to what package?


Hello, I need your assistance. In Debian how can I find out which program belongs to what package? For example, with rpm, I can use rpm -qf and rpm -ql to associate a program to a package and list the files of that package respectively. Thank you
 
Old 05-01-2017, 01:37 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Try dpkg-deb -S pattern

Fom 'man dpkg'
-S, --search filename-search-pattern... Search for a filename from installed packages.

apt-file also provides similar functionality but isn't usually installed by default.

'dpkg -L packagename' will list the content of a package.

Last edited by descendant_command; 05-01-2017 at 01:40 AM.
 
1 members found this post helpful.
Old 05-01-2017, 02:08 AM   #3
Viking559
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
+1 descendant_command
 
Old 05-02-2017, 12:57 AM   #4
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 634

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Try dpkg-deb -S pattern

Fom 'man dpkg'
-S, --search filename-search-pattern... Search for a filename from installed packages.
Those aren't the same thing

Code:
man dpkg-deb
       -Scompress-strategy
              Specify which compression strategy  to  use  on  the  compressor
              backend,  when  building  a package (since dpkg 1.16.2). Allowed
              values are none (since dpkg 1.16.4), filtered, huffman, rle  and
              fixed for gzip (since dpkg 1.17.0) and extreme for xz.

man dpkg
              -S, --search filename-search-pattern...
                  Search for a filename from installed packages.
As a alternate, you can try apt-cache

Code:
apt-cache search foobar

man apt-cache
       search regex...
           search performs a full text search on all available package lists
           for the POSIX regex pattern given, see regex(7). It searches the
           package names and the descriptions for an occurrence of the regular
           expression and prints out the package name and the short
           description, including virtual package names. If --full is given
           then output identical to show is produced for each matched package,
           and if --names-only is given then the long description is not
           searched, only the package name and provided packages are.

           Separate arguments can be used to specify multiple search patterns
           that are and'ed together.

Last edited by Sefyir; 05-02-2017 at 01:00 AM.
 
1 members found this post helpful.
Old 05-02-2017, 01:38 AM   #5
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by Sefyir View Post
Those aren't the same thing
Yeah ...

man dpkg mentions that some functions use dpkg-deb and dpkg-query for the heavy lifting and my fingers typed what I just read, rather than what I meant
 
Old 05-02-2017, 05:11 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
You can try this page too:
https://packages.debian.org/index
 
Old 05-02-2017, 08:23 AM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
5.4.3. Querying dpkg's Database and Inspecting .deb Files

Get some.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I broke my package manager / broken package blocks installs [Debian Wheezy] arthoc Linux - Software 4 06-20-2014 03:57 AM
list installed package files and how to know which package a file belongs bujecas Slackware 3 01-09-2010 03:14 PM
Tru64 - how can you determine the package where a file or binary belongs to?. Crazy_lenny Other *NIX 2 01-02-2009 10:38 AM
types.h belongs to which package sreenath Linux - Software 2 06-22-2006 10:57 PM
which package a command belongs to Tuttle Slackware 3 07-13-2004 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration