How do I list installed packages with source URI, distribution and section in Debian?List all software...

Unexpected email from Yorkshire Bank

Is this homebrew race based on the Draco Volans lizard species balanced?

Why do money exchangers give different rates to different bills

Transfer over $10k

Can I use 1000v rectifier diodes instead of 600v rectifier diodes?

What is the limiting factor for a CAN bus to exceed 1Mbps bandwidth?

Why do freehub and cassette have only one position that matches?

Is there a QGIS plugin that reclassify raster symbology based on current extent?

Historically, were women trained for obligatory wars? Or did they serve some other military function?

When do aircrafts become solarcrafts?

What word means "to make something obsolete"?

Is it cheaper to drop cargo than to land it?

How to assert on pagereference where the endpoint of pagereference is predefined

Packet sniffer for MacOS Mojave and above

How to reply this mail from potential PhD professor?

What is the most remote airport from the center of the city it supposedly serves?

Can a cyclic Amine form an Amide?

If Earth is tilted, why is Polaris always above the same spot?

How to get SEEK accessing converted ID via view

What is the word which sounds like "shtrass"?

Has any spacecraft ever had the ability to directly communicate with civilian air traffic control?

How can I fairly adjudicate the effects of height differences on ranged attacks?

How long can a 35mm film be used/stored before it starts to lose its quality after expiry?

Power LED from 3.3V Power Pin without Resistor



How do I list installed packages with source URI, distribution and section in Debian?


List all software installed from particular component (non-free, contrib)List installed packages independent of distroUnmet dependenciesTrouble migrating from Yum to apt-getIncompatible versions of libsqlite3-0 (i386 and amd64) block each otherHow do I install a single package from Debian testing or unstable on stable?Find source of all installed packages on Debian based systemsHow do I replicate installed package selections from one Debian system to another? (Debian Wheezy)Is it safe to manually perform 'apt-get update' 's operation?:How to install a package behind an overly restricted firewall“Unmet dependencies. bluez : Conflicts_ bluez-alsa:i386 but 4.98-2ubuntu7 is to be installed”debian unstable and apt upgrade policies with installed experimental packages






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







3















I have a set of (source) URIs, distributions and sections enabled in my Debian Wheezy apt configuration. Now I want a list of all installed packages, and for each of those, the source URI, "distribution" and "section" that the currently installed version of each respective package has been installed from.



I'm basically looking for something like the output of dpkg -l but instead of the description it would show the source URI, distribution and section. Something like:



||/ Name       Version           Arch  InstalledFrom
+++-==========-=================-=====-===================
ii package1 1:4.14-1.1+deb7u1 amd64 ftp://ftp.se.debian.org/debian wheezy main
ii package2 1.7-1 all ftp://ftp.se.debian.org/debian wheezy/updates main
ii package3 1.0.25+3~deb7u1 all ftp://ftp.se.debian.org/debian wheezy non-free
ii package4 0.9.8~3 amd64 local
ii package5 7.2.107 i386 local


How can I obtain such a list of packages?



Nicely formatted would be a bonus, but mostly anything that I can grep for interesting line substrings (or even just browse through) will likely do.










share|improve this question

























  • Take a look at dctrl-tools. I don't think what you want is available within dpkg at least, which isn't the most flexible tool. Mercurial, for example, has a DSL which lets you configure the output of log and other commands, but that isn't common with command line tools. If you want something exactly like this, my quess is you'll have to write it yourself if something like dctrl-tools won't do it for you.

    – Faheem Mitha
    Feb 8 '15 at 16:12











  • See also: List all software installed from particular component (non-free, contrib)

    – a CVn
    Feb 26 '16 at 10:07











  • Did you want to know the section, or the component? main and non-free are components, not sections. See wiki.debian.org/SourcesList

    – mpb
    Aug 23 '18 at 16:39











  • @mpb To be honest, after three and a half years, I don't remember. :-)

    – a CVn
    Aug 23 '18 at 16:40













  • @Michael Kjörling So the wiki ( wiki.debian.org/SourcesList ) calls them "components", but the Debian package search page ( debian.org/distrib/packages#search_packages ) calls them "sections". Confusing! The problem is, "section" does have another meaning in the context of Debian packages. So the search page is probably incorrect and misleading. (Update: the sources.list man page also calls them components.)

    – mpb
    Aug 23 '18 at 16:52




















3















I have a set of (source) URIs, distributions and sections enabled in my Debian Wheezy apt configuration. Now I want a list of all installed packages, and for each of those, the source URI, "distribution" and "section" that the currently installed version of each respective package has been installed from.



I'm basically looking for something like the output of dpkg -l but instead of the description it would show the source URI, distribution and section. Something like:



||/ Name       Version           Arch  InstalledFrom
+++-==========-=================-=====-===================
ii package1 1:4.14-1.1+deb7u1 amd64 ftp://ftp.se.debian.org/debian wheezy main
ii package2 1.7-1 all ftp://ftp.se.debian.org/debian wheezy/updates main
ii package3 1.0.25+3~deb7u1 all ftp://ftp.se.debian.org/debian wheezy non-free
ii package4 0.9.8~3 amd64 local
ii package5 7.2.107 i386 local


How can I obtain such a list of packages?



Nicely formatted would be a bonus, but mostly anything that I can grep for interesting line substrings (or even just browse through) will likely do.










share|improve this question

























  • Take a look at dctrl-tools. I don't think what you want is available within dpkg at least, which isn't the most flexible tool. Mercurial, for example, has a DSL which lets you configure the output of log and other commands, but that isn't common with command line tools. If you want something exactly like this, my quess is you'll have to write it yourself if something like dctrl-tools won't do it for you.

    – Faheem Mitha
    Feb 8 '15 at 16:12











  • See also: List all software installed from particular component (non-free, contrib)

    – a CVn
    Feb 26 '16 at 10:07











  • Did you want to know the section, or the component? main and non-free are components, not sections. See wiki.debian.org/SourcesList

    – mpb
    Aug 23 '18 at 16:39











  • @mpb To be honest, after three and a half years, I don't remember. :-)

    – a CVn
    Aug 23 '18 at 16:40













  • @Michael Kjörling So the wiki ( wiki.debian.org/SourcesList ) calls them "components", but the Debian package search page ( debian.org/distrib/packages#search_packages ) calls them "sections". Confusing! The problem is, "section" does have another meaning in the context of Debian packages. So the search page is probably incorrect and misleading. (Update: the sources.list man page also calls them components.)

    – mpb
    Aug 23 '18 at 16:52
















3












3








3








I have a set of (source) URIs, distributions and sections enabled in my Debian Wheezy apt configuration. Now I want a list of all installed packages, and for each of those, the source URI, "distribution" and "section" that the currently installed version of each respective package has been installed from.



I'm basically looking for something like the output of dpkg -l but instead of the description it would show the source URI, distribution and section. Something like:



||/ Name       Version           Arch  InstalledFrom
+++-==========-=================-=====-===================
ii package1 1:4.14-1.1+deb7u1 amd64 ftp://ftp.se.debian.org/debian wheezy main
ii package2 1.7-1 all ftp://ftp.se.debian.org/debian wheezy/updates main
ii package3 1.0.25+3~deb7u1 all ftp://ftp.se.debian.org/debian wheezy non-free
ii package4 0.9.8~3 amd64 local
ii package5 7.2.107 i386 local


How can I obtain such a list of packages?



Nicely formatted would be a bonus, but mostly anything that I can grep for interesting line substrings (or even just browse through) will likely do.










share|improve this question
















I have a set of (source) URIs, distributions and sections enabled in my Debian Wheezy apt configuration. Now I want a list of all installed packages, and for each of those, the source URI, "distribution" and "section" that the currently installed version of each respective package has been installed from.



I'm basically looking for something like the output of dpkg -l but instead of the description it would show the source URI, distribution and section. Something like:



||/ Name       Version           Arch  InstalledFrom
+++-==========-=================-=====-===================
ii package1 1:4.14-1.1+deb7u1 amd64 ftp://ftp.se.debian.org/debian wheezy main
ii package2 1.7-1 all ftp://ftp.se.debian.org/debian wheezy/updates main
ii package3 1.0.25+3~deb7u1 all ftp://ftp.se.debian.org/debian wheezy non-free
ii package4 0.9.8~3 amd64 local
ii package5 7.2.107 i386 local


How can I obtain such a list of packages?



Nicely formatted would be a bonus, but mostly anything that I can grep for interesting line substrings (or even just browse through) will likely do.







debian software-installation apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 58 mins ago









Rui F Ribeiro

42.5k1485146




42.5k1485146










asked Feb 8 '15 at 15:08









a CVna CVn

17.6k852109




17.6k852109













  • Take a look at dctrl-tools. I don't think what you want is available within dpkg at least, which isn't the most flexible tool. Mercurial, for example, has a DSL which lets you configure the output of log and other commands, but that isn't common with command line tools. If you want something exactly like this, my quess is you'll have to write it yourself if something like dctrl-tools won't do it for you.

    – Faheem Mitha
    Feb 8 '15 at 16:12











  • See also: List all software installed from particular component (non-free, contrib)

    – a CVn
    Feb 26 '16 at 10:07











  • Did you want to know the section, or the component? main and non-free are components, not sections. See wiki.debian.org/SourcesList

    – mpb
    Aug 23 '18 at 16:39











  • @mpb To be honest, after three and a half years, I don't remember. :-)

    – a CVn
    Aug 23 '18 at 16:40













  • @Michael Kjörling So the wiki ( wiki.debian.org/SourcesList ) calls them "components", but the Debian package search page ( debian.org/distrib/packages#search_packages ) calls them "sections". Confusing! The problem is, "section" does have another meaning in the context of Debian packages. So the search page is probably incorrect and misleading. (Update: the sources.list man page also calls them components.)

    – mpb
    Aug 23 '18 at 16:52





















  • Take a look at dctrl-tools. I don't think what you want is available within dpkg at least, which isn't the most flexible tool. Mercurial, for example, has a DSL which lets you configure the output of log and other commands, but that isn't common with command line tools. If you want something exactly like this, my quess is you'll have to write it yourself if something like dctrl-tools won't do it for you.

    – Faheem Mitha
    Feb 8 '15 at 16:12











  • See also: List all software installed from particular component (non-free, contrib)

    – a CVn
    Feb 26 '16 at 10:07











  • Did you want to know the section, or the component? main and non-free are components, not sections. See wiki.debian.org/SourcesList

    – mpb
    Aug 23 '18 at 16:39











  • @mpb To be honest, after three and a half years, I don't remember. :-)

    – a CVn
    Aug 23 '18 at 16:40













  • @Michael Kjörling So the wiki ( wiki.debian.org/SourcesList ) calls them "components", but the Debian package search page ( debian.org/distrib/packages#search_packages ) calls them "sections". Confusing! The problem is, "section" does have another meaning in the context of Debian packages. So the search page is probably incorrect and misleading. (Update: the sources.list man page also calls them components.)

    – mpb
    Aug 23 '18 at 16:52



















Take a look at dctrl-tools. I don't think what you want is available within dpkg at least, which isn't the most flexible tool. Mercurial, for example, has a DSL which lets you configure the output of log and other commands, but that isn't common with command line tools. If you want something exactly like this, my quess is you'll have to write it yourself if something like dctrl-tools won't do it for you.

– Faheem Mitha
Feb 8 '15 at 16:12





Take a look at dctrl-tools. I don't think what you want is available within dpkg at least, which isn't the most flexible tool. Mercurial, for example, has a DSL which lets you configure the output of log and other commands, but that isn't common with command line tools. If you want something exactly like this, my quess is you'll have to write it yourself if something like dctrl-tools won't do it for you.

– Faheem Mitha
Feb 8 '15 at 16:12













See also: List all software installed from particular component (non-free, contrib)

– a CVn
Feb 26 '16 at 10:07





See also: List all software installed from particular component (non-free, contrib)

– a CVn
Feb 26 '16 at 10:07













Did you want to know the section, or the component? main and non-free are components, not sections. See wiki.debian.org/SourcesList

– mpb
Aug 23 '18 at 16:39





Did you want to know the section, or the component? main and non-free are components, not sections. See wiki.debian.org/SourcesList

– mpb
Aug 23 '18 at 16:39













@mpb To be honest, after three and a half years, I don't remember. :-)

– a CVn
Aug 23 '18 at 16:40







@mpb To be honest, after three and a half years, I don't remember. :-)

– a CVn
Aug 23 '18 at 16:40















@Michael Kjörling So the wiki ( wiki.debian.org/SourcesList ) calls them "components", but the Debian package search page ( debian.org/distrib/packages#search_packages ) calls them "sections". Confusing! The problem is, "section" does have another meaning in the context of Debian packages. So the search page is probably incorrect and misleading. (Update: the sources.list man page also calls them components.)

– mpb
Aug 23 '18 at 16:52







@Michael Kjörling So the wiki ( wiki.debian.org/SourcesList ) calls them "components", but the Debian package search page ( debian.org/distrib/packages#search_packages ) calls them "sections". Confusing! The problem is, "section" does have another meaning in the context of Debian packages. So the search page is probably incorrect and misleading. (Update: the sources.list man page also calls them components.)

– mpb
Aug 23 '18 at 16:52












4 Answers
4






active

oldest

votes


















4














As well as apt-cache policy, described in Braiam's answer, you can use apt-show-versions and apt-forktracer.



apt-show-versions by default will list all installed packages with the suite they come from, their version and whether they can be upgraded; for example



afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
agedu:amd64/testing 9723-1 uptodate
devio:armhf 1.2-1 installed: No available version in archive


With the -a option it lists the installed version and all available versions in all the repositories you have configured:



afl:amd64 1.28b-1 install ok installed
No stable version
No testing version
No unstable version
afl:amd64 1.36b-1 experimental ftp.fr.debian.org
afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
agedu:amd64 9723-1 install ok installed
No stable version
agedu:amd64 9723-1 testing ftp.fr.debian.org
agedu:amd64 9723-1 unstable ftp.fr.debian.org
No experimental version
agedu:amd64/testing 9723-1 uptodate


apt-forktracer lists the packages which don't come from the standard repositories or whose installed version doesn't match those available in the standard repositories:



afl (1.28b-1) [Debian: 1.36b-1]
bb (1.3rc1-8.2) [Debian: 1.3rc1-8.1+b1 1.3rc1-8.1+b1]
biew (5.7.3.1-0.1) [SK2: 5.7.3.1-0.1]





share|improve this answer

































    3














    You are looking for apt-cache policy output:



    ➜  ~  apt-cache policy skype
    skype:i386:
    Installed: 4.3.0.37-1
    Candidate: 4.3.0.37-1
    Version table:
    *** 4.3.0.37-1 0
    100 /var/lib/dpkg/status
    ➜ ~ apt-cache policy irssi
    irssi:
    Installed: 0.8.17-1
    Candidate: 0.8.17-1
    Version table:
    *** 0.8.17-1 0
    900 http://http.debian.net/debian/ testing/main amd64 Packages
    500 http://http.debian.net/debian/ unstable/main amd64 Packages
    100 /var/lib/dpkg/status
    ➜ ~ apt-cache policy megasync
    megasync:
    Installed: 1.0.39
    Candidate: 1.0.39
    Version table:
    *** 1.0.39 0
    500 http://mega.nz/linux/MEGAsync/Debian_7.0/ ./ Packages
    100 /var/lib/dpkg/status


    In this case, the installed version of skype isn't available from any repository (that includes local installation), irssi is installed from Debian repositories, and megasync is from a third party repository.






    share|improve this answer































      3














      -l is one of the options of dpkg-query, which has another option, -W (or --show). -W allows use to select an output format. You can try:



      dpkg-query --showformat '${Status}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | 
      column -ts $'t'


      For example:



      $ dpkg-query --showformat '${db:Status-Abbrev}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | column -ts $'t' | head
      ii account-plugin-aim 3.8.6-0ubuntu9.1 amd64 gnome
      ii account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu1 all gnome
      ii account-plugin-flickr 0.11+14.04.20140409.1-0ubuntu1 all gnome
      ii account-plugin-google 0.11+14.04.20140409.1-0ubuntu1 all gnome
      ii account-plugin-jabber 3.8.6-0ubuntu9.1 amd64 gnome
      ii account-plugin-salut 3.8.6-0ubuntu9.1 amd64 gnome
      ii account-plugin-twitter 0.11+14.04.20140409.1-0ubuntu1 all gnome
      ii account-plugin-windows-live 0.11+14.04.20140409.1-0ubuntu1 all gnome
      ii account-plugin-yahoo 3.8.6-0ubuntu9.1 amd64 gnome
      ii accountsservice 0.6.35-0ubuntu7.1 amd64 admin


      The URI is not known to dpkg, since that's a frontend (apt) concern. It shouldn't be that difficult to use awk or something to obtain it too, though.






      share|improve this answer

































        2














        I found myself putting together pieces from the different answers, particularly Braiam's and muru's. In the end, I ended up with this oneliner, which gets me close enough to a start that I should be able to figure out the rest:



        dpkg-query --showformat '${Package}n' -W | 
        while read package; do
        apt-cache policy $package | grep -q wheezy/non-free && echo $package ;
        done


        The above lists the names of all packages which apt-cache policy reports as coming from wheezy/non-free (not exactly, but close enough for the moment). By adjusting what the script does with the apt-cache policy output, while it won't be in a nice tabular format (at least out of the box), it should be possible to get fairly close to what I am after.



        Thanks to everyone who helped out!






        share|improve this answer


























          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f183644%2fhow-do-i-list-installed-packages-with-source-uri-distribution-and-section-in-de%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          As well as apt-cache policy, described in Braiam's answer, you can use apt-show-versions and apt-forktracer.



          apt-show-versions by default will list all installed packages with the suite they come from, their version and whether they can be upgraded; for example



          afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
          agedu:amd64/testing 9723-1 uptodate
          devio:armhf 1.2-1 installed: No available version in archive


          With the -a option it lists the installed version and all available versions in all the repositories you have configured:



          afl:amd64 1.28b-1 install ok installed
          No stable version
          No testing version
          No unstable version
          afl:amd64 1.36b-1 experimental ftp.fr.debian.org
          afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
          agedu:amd64 9723-1 install ok installed
          No stable version
          agedu:amd64 9723-1 testing ftp.fr.debian.org
          agedu:amd64 9723-1 unstable ftp.fr.debian.org
          No experimental version
          agedu:amd64/testing 9723-1 uptodate


          apt-forktracer lists the packages which don't come from the standard repositories or whose installed version doesn't match those available in the standard repositories:



          afl (1.28b-1) [Debian: 1.36b-1]
          bb (1.3rc1-8.2) [Debian: 1.3rc1-8.1+b1 1.3rc1-8.1+b1]
          biew (5.7.3.1-0.1) [SK2: 5.7.3.1-0.1]





          share|improve this answer






























            4














            As well as apt-cache policy, described in Braiam's answer, you can use apt-show-versions and apt-forktracer.



            apt-show-versions by default will list all installed packages with the suite they come from, their version and whether they can be upgraded; for example



            afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
            agedu:amd64/testing 9723-1 uptodate
            devio:armhf 1.2-1 installed: No available version in archive


            With the -a option it lists the installed version and all available versions in all the repositories you have configured:



            afl:amd64 1.28b-1 install ok installed
            No stable version
            No testing version
            No unstable version
            afl:amd64 1.36b-1 experimental ftp.fr.debian.org
            afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
            agedu:amd64 9723-1 install ok installed
            No stable version
            agedu:amd64 9723-1 testing ftp.fr.debian.org
            agedu:amd64 9723-1 unstable ftp.fr.debian.org
            No experimental version
            agedu:amd64/testing 9723-1 uptodate


            apt-forktracer lists the packages which don't come from the standard repositories or whose installed version doesn't match those available in the standard repositories:



            afl (1.28b-1) [Debian: 1.36b-1]
            bb (1.3rc1-8.2) [Debian: 1.3rc1-8.1+b1 1.3rc1-8.1+b1]
            biew (5.7.3.1-0.1) [SK2: 5.7.3.1-0.1]





            share|improve this answer




























              4












              4








              4







              As well as apt-cache policy, described in Braiam's answer, you can use apt-show-versions and apt-forktracer.



              apt-show-versions by default will list all installed packages with the suite they come from, their version and whether they can be upgraded; for example



              afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
              agedu:amd64/testing 9723-1 uptodate
              devio:armhf 1.2-1 installed: No available version in archive


              With the -a option it lists the installed version and all available versions in all the repositories you have configured:



              afl:amd64 1.28b-1 install ok installed
              No stable version
              No testing version
              No unstable version
              afl:amd64 1.36b-1 experimental ftp.fr.debian.org
              afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
              agedu:amd64 9723-1 install ok installed
              No stable version
              agedu:amd64 9723-1 testing ftp.fr.debian.org
              agedu:amd64 9723-1 unstable ftp.fr.debian.org
              No experimental version
              agedu:amd64/testing 9723-1 uptodate


              apt-forktracer lists the packages which don't come from the standard repositories or whose installed version doesn't match those available in the standard repositories:



              afl (1.28b-1) [Debian: 1.36b-1]
              bb (1.3rc1-8.2) [Debian: 1.3rc1-8.1+b1 1.3rc1-8.1+b1]
              biew (5.7.3.1-0.1) [SK2: 5.7.3.1-0.1]





              share|improve this answer















              As well as apt-cache policy, described in Braiam's answer, you can use apt-show-versions and apt-forktracer.



              apt-show-versions by default will list all installed packages with the suite they come from, their version and whether they can be upgraded; for example



              afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
              agedu:amd64/testing 9723-1 uptodate
              devio:armhf 1.2-1 installed: No available version in archive


              With the -a option it lists the installed version and all available versions in all the repositories you have configured:



              afl:amd64 1.28b-1 install ok installed
              No stable version
              No testing version
              No unstable version
              afl:amd64 1.36b-1 experimental ftp.fr.debian.org
              afl:amd64/experimental *manually* upgradeable from 1.28b-1 to 1.36b-1
              agedu:amd64 9723-1 install ok installed
              No stable version
              agedu:amd64 9723-1 testing ftp.fr.debian.org
              agedu:amd64 9723-1 unstable ftp.fr.debian.org
              No experimental version
              agedu:amd64/testing 9723-1 uptodate


              apt-forktracer lists the packages which don't come from the standard repositories or whose installed version doesn't match those available in the standard repositories:



              afl (1.28b-1) [Debian: 1.36b-1]
              bb (1.3rc1-8.2) [Debian: 1.3rc1-8.1+b1 1.3rc1-8.1+b1]
              biew (5.7.3.1-0.1) [SK2: 5.7.3.1-0.1]






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:36









              Community

              1




              1










              answered Feb 8 '15 at 17:11









              Stephen KittStephen Kitt

              183k26421500




              183k26421500

























                  3














                  You are looking for apt-cache policy output:



                  ➜  ~  apt-cache policy skype
                  skype:i386:
                  Installed: 4.3.0.37-1
                  Candidate: 4.3.0.37-1
                  Version table:
                  *** 4.3.0.37-1 0
                  100 /var/lib/dpkg/status
                  ➜ ~ apt-cache policy irssi
                  irssi:
                  Installed: 0.8.17-1
                  Candidate: 0.8.17-1
                  Version table:
                  *** 0.8.17-1 0
                  900 http://http.debian.net/debian/ testing/main amd64 Packages
                  500 http://http.debian.net/debian/ unstable/main amd64 Packages
                  100 /var/lib/dpkg/status
                  ➜ ~ apt-cache policy megasync
                  megasync:
                  Installed: 1.0.39
                  Candidate: 1.0.39
                  Version table:
                  *** 1.0.39 0
                  500 http://mega.nz/linux/MEGAsync/Debian_7.0/ ./ Packages
                  100 /var/lib/dpkg/status


                  In this case, the installed version of skype isn't available from any repository (that includes local installation), irssi is installed from Debian repositories, and megasync is from a third party repository.






                  share|improve this answer




























                    3














                    You are looking for apt-cache policy output:



                    ➜  ~  apt-cache policy skype
                    skype:i386:
                    Installed: 4.3.0.37-1
                    Candidate: 4.3.0.37-1
                    Version table:
                    *** 4.3.0.37-1 0
                    100 /var/lib/dpkg/status
                    ➜ ~ apt-cache policy irssi
                    irssi:
                    Installed: 0.8.17-1
                    Candidate: 0.8.17-1
                    Version table:
                    *** 0.8.17-1 0
                    900 http://http.debian.net/debian/ testing/main amd64 Packages
                    500 http://http.debian.net/debian/ unstable/main amd64 Packages
                    100 /var/lib/dpkg/status
                    ➜ ~ apt-cache policy megasync
                    megasync:
                    Installed: 1.0.39
                    Candidate: 1.0.39
                    Version table:
                    *** 1.0.39 0
                    500 http://mega.nz/linux/MEGAsync/Debian_7.0/ ./ Packages
                    100 /var/lib/dpkg/status


                    In this case, the installed version of skype isn't available from any repository (that includes local installation), irssi is installed from Debian repositories, and megasync is from a third party repository.






                    share|improve this answer


























                      3












                      3








                      3







                      You are looking for apt-cache policy output:



                      ➜  ~  apt-cache policy skype
                      skype:i386:
                      Installed: 4.3.0.37-1
                      Candidate: 4.3.0.37-1
                      Version table:
                      *** 4.3.0.37-1 0
                      100 /var/lib/dpkg/status
                      ➜ ~ apt-cache policy irssi
                      irssi:
                      Installed: 0.8.17-1
                      Candidate: 0.8.17-1
                      Version table:
                      *** 0.8.17-1 0
                      900 http://http.debian.net/debian/ testing/main amd64 Packages
                      500 http://http.debian.net/debian/ unstable/main amd64 Packages
                      100 /var/lib/dpkg/status
                      ➜ ~ apt-cache policy megasync
                      megasync:
                      Installed: 1.0.39
                      Candidate: 1.0.39
                      Version table:
                      *** 1.0.39 0
                      500 http://mega.nz/linux/MEGAsync/Debian_7.0/ ./ Packages
                      100 /var/lib/dpkg/status


                      In this case, the installed version of skype isn't available from any repository (that includes local installation), irssi is installed from Debian repositories, and megasync is from a third party repository.






                      share|improve this answer













                      You are looking for apt-cache policy output:



                      ➜  ~  apt-cache policy skype
                      skype:i386:
                      Installed: 4.3.0.37-1
                      Candidate: 4.3.0.37-1
                      Version table:
                      *** 4.3.0.37-1 0
                      100 /var/lib/dpkg/status
                      ➜ ~ apt-cache policy irssi
                      irssi:
                      Installed: 0.8.17-1
                      Candidate: 0.8.17-1
                      Version table:
                      *** 0.8.17-1 0
                      900 http://http.debian.net/debian/ testing/main amd64 Packages
                      500 http://http.debian.net/debian/ unstable/main amd64 Packages
                      100 /var/lib/dpkg/status
                      ➜ ~ apt-cache policy megasync
                      megasync:
                      Installed: 1.0.39
                      Candidate: 1.0.39
                      Version table:
                      *** 1.0.39 0
                      500 http://mega.nz/linux/MEGAsync/Debian_7.0/ ./ Packages
                      100 /var/lib/dpkg/status


                      In this case, the installed version of skype isn't available from any repository (that includes local installation), irssi is installed from Debian repositories, and megasync is from a third party repository.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Feb 8 '15 at 15:42









                      BraiamBraiam

                      23.9k2078144




                      23.9k2078144























                          3














                          -l is one of the options of dpkg-query, which has another option, -W (or --show). -W allows use to select an output format. You can try:



                          dpkg-query --showformat '${Status}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | 
                          column -ts $'t'


                          For example:



                          $ dpkg-query --showformat '${db:Status-Abbrev}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | column -ts $'t' | head
                          ii account-plugin-aim 3.8.6-0ubuntu9.1 amd64 gnome
                          ii account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu1 all gnome
                          ii account-plugin-flickr 0.11+14.04.20140409.1-0ubuntu1 all gnome
                          ii account-plugin-google 0.11+14.04.20140409.1-0ubuntu1 all gnome
                          ii account-plugin-jabber 3.8.6-0ubuntu9.1 amd64 gnome
                          ii account-plugin-salut 3.8.6-0ubuntu9.1 amd64 gnome
                          ii account-plugin-twitter 0.11+14.04.20140409.1-0ubuntu1 all gnome
                          ii account-plugin-windows-live 0.11+14.04.20140409.1-0ubuntu1 all gnome
                          ii account-plugin-yahoo 3.8.6-0ubuntu9.1 amd64 gnome
                          ii accountsservice 0.6.35-0ubuntu7.1 amd64 admin


                          The URI is not known to dpkg, since that's a frontend (apt) concern. It shouldn't be that difficult to use awk or something to obtain it too, though.






                          share|improve this answer






























                            3














                            -l is one of the options of dpkg-query, which has another option, -W (or --show). -W allows use to select an output format. You can try:



                            dpkg-query --showformat '${Status}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | 
                            column -ts $'t'


                            For example:



                            $ dpkg-query --showformat '${db:Status-Abbrev}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | column -ts $'t' | head
                            ii account-plugin-aim 3.8.6-0ubuntu9.1 amd64 gnome
                            ii account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu1 all gnome
                            ii account-plugin-flickr 0.11+14.04.20140409.1-0ubuntu1 all gnome
                            ii account-plugin-google 0.11+14.04.20140409.1-0ubuntu1 all gnome
                            ii account-plugin-jabber 3.8.6-0ubuntu9.1 amd64 gnome
                            ii account-plugin-salut 3.8.6-0ubuntu9.1 amd64 gnome
                            ii account-plugin-twitter 0.11+14.04.20140409.1-0ubuntu1 all gnome
                            ii account-plugin-windows-live 0.11+14.04.20140409.1-0ubuntu1 all gnome
                            ii account-plugin-yahoo 3.8.6-0ubuntu9.1 amd64 gnome
                            ii accountsservice 0.6.35-0ubuntu7.1 amd64 admin


                            The URI is not known to dpkg, since that's a frontend (apt) concern. It shouldn't be that difficult to use awk or something to obtain it too, though.






                            share|improve this answer




























                              3












                              3








                              3







                              -l is one of the options of dpkg-query, which has another option, -W (or --show). -W allows use to select an output format. You can try:



                              dpkg-query --showformat '${Status}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | 
                              column -ts $'t'


                              For example:



                              $ dpkg-query --showformat '${db:Status-Abbrev}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | column -ts $'t' | head
                              ii account-plugin-aim 3.8.6-0ubuntu9.1 amd64 gnome
                              ii account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-flickr 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-google 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-jabber 3.8.6-0ubuntu9.1 amd64 gnome
                              ii account-plugin-salut 3.8.6-0ubuntu9.1 amd64 gnome
                              ii account-plugin-twitter 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-windows-live 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-yahoo 3.8.6-0ubuntu9.1 amd64 gnome
                              ii accountsservice 0.6.35-0ubuntu7.1 amd64 admin


                              The URI is not known to dpkg, since that's a frontend (apt) concern. It shouldn't be that difficult to use awk or something to obtain it too, though.






                              share|improve this answer















                              -l is one of the options of dpkg-query, which has another option, -W (or --show). -W allows use to select an output format. You can try:



                              dpkg-query --showformat '${Status}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | 
                              column -ts $'t'


                              For example:



                              $ dpkg-query --showformat '${db:Status-Abbrev}t${Package}t${Version}t${Architecture}t${Origin}t${Section}n' -W | column -ts $'t' | head
                              ii account-plugin-aim 3.8.6-0ubuntu9.1 amd64 gnome
                              ii account-plugin-facebook 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-flickr 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-google 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-jabber 3.8.6-0ubuntu9.1 amd64 gnome
                              ii account-plugin-salut 3.8.6-0ubuntu9.1 amd64 gnome
                              ii account-plugin-twitter 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-windows-live 0.11+14.04.20140409.1-0ubuntu1 all gnome
                              ii account-plugin-yahoo 3.8.6-0ubuntu9.1 amd64 gnome
                              ii accountsservice 0.6.35-0ubuntu7.1 amd64 admin


                              The URI is not known to dpkg, since that's a frontend (apt) concern. It shouldn't be that difficult to use awk or something to obtain it too, though.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited May 25 '16 at 19:57









                              Braiam

                              23.9k2078144




                              23.9k2078144










                              answered Feb 8 '15 at 18:37









                              murumuru

                              38.2k591166




                              38.2k591166























                                  2














                                  I found myself putting together pieces from the different answers, particularly Braiam's and muru's. In the end, I ended up with this oneliner, which gets me close enough to a start that I should be able to figure out the rest:



                                  dpkg-query --showformat '${Package}n' -W | 
                                  while read package; do
                                  apt-cache policy $package | grep -q wheezy/non-free && echo $package ;
                                  done


                                  The above lists the names of all packages which apt-cache policy reports as coming from wheezy/non-free (not exactly, but close enough for the moment). By adjusting what the script does with the apt-cache policy output, while it won't be in a nice tabular format (at least out of the box), it should be possible to get fairly close to what I am after.



                                  Thanks to everyone who helped out!






                                  share|improve this answer






























                                    2














                                    I found myself putting together pieces from the different answers, particularly Braiam's and muru's. In the end, I ended up with this oneliner, which gets me close enough to a start that I should be able to figure out the rest:



                                    dpkg-query --showformat '${Package}n' -W | 
                                    while read package; do
                                    apt-cache policy $package | grep -q wheezy/non-free && echo $package ;
                                    done


                                    The above lists the names of all packages which apt-cache policy reports as coming from wheezy/non-free (not exactly, but close enough for the moment). By adjusting what the script does with the apt-cache policy output, while it won't be in a nice tabular format (at least out of the box), it should be possible to get fairly close to what I am after.



                                    Thanks to everyone who helped out!






                                    share|improve this answer




























                                      2












                                      2








                                      2







                                      I found myself putting together pieces from the different answers, particularly Braiam's and muru's. In the end, I ended up with this oneliner, which gets me close enough to a start that I should be able to figure out the rest:



                                      dpkg-query --showformat '${Package}n' -W | 
                                      while read package; do
                                      apt-cache policy $package | grep -q wheezy/non-free && echo $package ;
                                      done


                                      The above lists the names of all packages which apt-cache policy reports as coming from wheezy/non-free (not exactly, but close enough for the moment). By adjusting what the script does with the apt-cache policy output, while it won't be in a nice tabular format (at least out of the box), it should be possible to get fairly close to what I am after.



                                      Thanks to everyone who helped out!






                                      share|improve this answer















                                      I found myself putting together pieces from the different answers, particularly Braiam's and muru's. In the end, I ended up with this oneliner, which gets me close enough to a start that I should be able to figure out the rest:



                                      dpkg-query --showformat '${Package}n' -W | 
                                      while read package; do
                                      apt-cache policy $package | grep -q wheezy/non-free && echo $package ;
                                      done


                                      The above lists the names of all packages which apt-cache policy reports as coming from wheezy/non-free (not exactly, but close enough for the moment). By adjusting what the script does with the apt-cache policy output, while it won't be in a nice tabular format (at least out of the box), it should be possible to get fairly close to what I am after.



                                      Thanks to everyone who helped out!







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Apr 13 '17 at 12:36









                                      Community

                                      1




                                      1










                                      answered Feb 14 '15 at 14:38









                                      a CVna CVn

                                      17.6k852109




                                      17.6k852109






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Unix & Linux Stack Exchange!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f183644%2fhow-do-i-list-installed-packages-with-source-uri-distribution-and-section-in-de%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                                          The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                                          Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...