LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian: What program belongs to what package? (https://www.linuxquestions.org/questions/linux-newbie-8/debian-what-program-belongs-to-what-package-4175604990/)

Viking559 05-01-2017 12:25 AM

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

descendant_command 05-01-2017 01:37 AM

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.

Viking559 05-01-2017 02:08 AM

+1 descendant_command

Sefyir 05-02-2017 12:57 AM

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.


descendant_command 05-02-2017 01:38 AM

Quote:

Originally Posted by Sefyir (Post 5704935)
Those aren't the same thing

Yeah ...:foot:

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 :)

pan64 05-02-2017 05:11 AM

You can try this page too:
https://packages.debian.org/index

Habitual 05-02-2017 08:23 AM

5.4.3. Querying dpkg's Database and Inspecting .deb Files

Get some.


All times are GMT -5. The time now is 02:30 AM.