Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, As the tile suggests, I want to get a list of all packages that provide a certain virtual package. A way of doing this would be to write a ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    7

    Question shell command for finding all packages that provide a certain virtual package

    Hello,

    As the tile suggests, I want to get a list of all packages that provide a certain virtual package.
    A way of doing this would be to write a shell script that parses all output of
    Code:
    apt-cache search -f .*
    And spits out all packages that have the virtual package in the provides section.
    The problem with this approach is that it takes an awful long amount of time to execute. I guess that there should be a simple command that does this in an efficient manner, but which I wasn't able to find.

    Any advice is welcomed.
    Thanks.

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hello,
    I think that this could help you:
    For example:
    dpkg-query -W -f='${Package}\nVersion: ${Version}\nDepends: ${Depends}\nProvides:\nPre-Depends: ${Pre-Depends}\nRecommends: ${Recommends}\n' ubuntu-restricted-extras

    Regrads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...