Download virtual package

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I'm developing the script that downloads all the packages from Ubuntu repository. I know that Ubuntu repository is open via HTTP. So it's possible to download the entire folders (in my particular case http://archive.ubuntu.com/ubuntu/dists/trusty*). But I would like to download the packages via apt. apt is good choice because it not only downloads the packages but verifies signatures as well.



The steps are the following:



  1. Get names of all the packages via apt-cache pkgnames

  2. For each name discovered at the previous step execute apt-get download <package_name>

It sounds good. But virtual packages are the trap.



I'm aware that virtual package is not a package, e.g. not a deb-file. It's logical group of normal packages or synonym for the certain normal package (so the commands like apt-cache show mail-transport-agent will fail). I suppose that virtual package is actually represented in repository as a file. Such file contains metadata about normal packages the virtual package stands for.



Is it possible to download virtual package metadata file via apt? Where is virtual package metadata located in general?










share|improve this question

























    up vote
    2
    down vote

    favorite












    I'm developing the script that downloads all the packages from Ubuntu repository. I know that Ubuntu repository is open via HTTP. So it's possible to download the entire folders (in my particular case http://archive.ubuntu.com/ubuntu/dists/trusty*). But I would like to download the packages via apt. apt is good choice because it not only downloads the packages but verifies signatures as well.



    The steps are the following:



    1. Get names of all the packages via apt-cache pkgnames

    2. For each name discovered at the previous step execute apt-get download <package_name>

    It sounds good. But virtual packages are the trap.



    I'm aware that virtual package is not a package, e.g. not a deb-file. It's logical group of normal packages or synonym for the certain normal package (so the commands like apt-cache show mail-transport-agent will fail). I suppose that virtual package is actually represented in repository as a file. Such file contains metadata about normal packages the virtual package stands for.



    Is it possible to download virtual package metadata file via apt? Where is virtual package metadata located in general?










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I'm developing the script that downloads all the packages from Ubuntu repository. I know that Ubuntu repository is open via HTTP. So it's possible to download the entire folders (in my particular case http://archive.ubuntu.com/ubuntu/dists/trusty*). But I would like to download the packages via apt. apt is good choice because it not only downloads the packages but verifies signatures as well.



      The steps are the following:



      1. Get names of all the packages via apt-cache pkgnames

      2. For each name discovered at the previous step execute apt-get download <package_name>

      It sounds good. But virtual packages are the trap.



      I'm aware that virtual package is not a package, e.g. not a deb-file. It's logical group of normal packages or synonym for the certain normal package (so the commands like apt-cache show mail-transport-agent will fail). I suppose that virtual package is actually represented in repository as a file. Such file contains metadata about normal packages the virtual package stands for.



      Is it possible to download virtual package metadata file via apt? Where is virtual package metadata located in general?










      share|improve this question













      I'm developing the script that downloads all the packages from Ubuntu repository. I know that Ubuntu repository is open via HTTP. So it's possible to download the entire folders (in my particular case http://archive.ubuntu.com/ubuntu/dists/trusty*). But I would like to download the packages via apt. apt is good choice because it not only downloads the packages but verifies signatures as well.



      The steps are the following:



      1. Get names of all the packages via apt-cache pkgnames

      2. For each name discovered at the previous step execute apt-get download <package_name>

      It sounds good. But virtual packages are the trap.



      I'm aware that virtual package is not a package, e.g. not a deb-file. It's logical group of normal packages or synonym for the certain normal package (so the commands like apt-cache show mail-transport-agent will fail). I suppose that virtual package is actually represented in repository as a file. Such file contains metadata about normal packages the virtual package stands for.



      Is it possible to download virtual package metadata file via apt? Where is virtual package metadata located in general?







      14.04 apt package-management repository






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 15 at 12:25









      flaz14

      1417




      1417

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006456%2fdownload-virtual-package%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006456%2fdownload-virtual-package%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do I move numbers in filenames, in a batch renaming operation?