How to host a repository in my own site like a PPA?





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







5















As launchpad does not support binary uploads, I want to make .deb packages and host them in My own Github website.




  1. How to do it?

  2. When done, how to install packages from it?










share|improve this question































    5















    As launchpad does not support binary uploads, I want to make .deb packages and host them in My own Github website.




    1. How to do it?

    2. When done, how to install packages from it?










    share|improve this question



























      5












      5








      5


      4






      As launchpad does not support binary uploads, I want to make .deb packages and host them in My own Github website.




      1. How to do it?

      2. When done, how to install packages from it?










      share|improve this question
















      As launchpad does not support binary uploads, I want to make .deb packages and host them in My own Github website.




      1. How to do it?

      2. When done, how to install packages from it?







      repository






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 10:49







      Archisman Panigrahi

















      asked Oct 28 '13 at 8:48









      Archisman PanigrahiArchisman Panigrahi

      2,33032456




      2,33032456






















          1 Answer
          1






          active

          oldest

          votes


















          8














          A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.



          You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).



          If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).



          You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:



          deb http://mysite.com/myrepo precise main





          share|improve this answer


























          • But pypy ppa only has dists and pool folders in root, not the .debs.

            – Archisman Panigrahi
            Oct 28 '13 at 10:59











          • The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

            – chronitis
            Oct 28 '13 at 11:10












          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f367147%2fhow-to-host-a-repository-in-my-own-site-like-a-ppa%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          8














          A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.



          You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).



          If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).



          You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:



          deb http://mysite.com/myrepo precise main





          share|improve this answer


























          • But pypy ppa only has dists and pool folders in root, not the .debs.

            – Archisman Panigrahi
            Oct 28 '13 at 10:59











          • The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

            – chronitis
            Oct 28 '13 at 11:10
















          8














          A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.



          You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).



          If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).



          You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:



          deb http://mysite.com/myrepo precise main





          share|improve this answer


























          • But pypy ppa only has dists and pool folders in root, not the .debs.

            – Archisman Panigrahi
            Oct 28 '13 at 10:59











          • The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

            – chronitis
            Oct 28 '13 at 11:10














          8












          8








          8







          A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.



          You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).



          If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).



          You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:



          deb http://mysite.com/myrepo precise main





          share|improve this answer















          A Ubuntu/Debian repository at the minimum consists of a web server directory containing some .deb packages and an index file which apt-get reads to know which packages and versions are available.



          You can read Debian's documentation on how a repository is structured here. You can also try just navigating a simple PPA repository with your web browser to see how it looks in practice. (Example link: pypy ppa).



          If you're planning on updating it only rarely, it is possible to set up the necessary directories and index files by hand, but probably not recommended. A tool like debarchiver should help you (although I have not used it personally).



          You then just add a new file in /etc/apt/sources.list.d corresponding to your new repository. Eg, a new file /etc/apt/sources.list.d/myrepo.list containing:



          deb http://mysite.com/myrepo precise main






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 28 '13 at 9:37

























          answered Oct 28 '13 at 9:30









          chronitischronitis

          9,5263230




          9,5263230













          • But pypy ppa only has dists and pool folders in root, not the .debs.

            – Archisman Panigrahi
            Oct 28 '13 at 10:59











          • The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

            – chronitis
            Oct 28 '13 at 11:10



















          • But pypy ppa only has dists and pool folders in root, not the .debs.

            – Archisman Panigrahi
            Oct 28 '13 at 10:59











          • The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

            – chronitis
            Oct 28 '13 at 11:10

















          But pypy ppa only has dists and pool folders in root, not the .debs.

          – Archisman Panigrahi
          Oct 28 '13 at 10:59





          But pypy ppa only has dists and pool folders in root, not the .debs.

          – Archisman Panigrahi
          Oct 28 '13 at 10:59













          The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

          – chronitis
          Oct 28 '13 at 11:10





          The location of each deb file is given in the Packages index. I think you can probably organise the deb files however you want providing the paths are correct. The dists dir however needs to have the correct structure to work.

          – chronitis
          Oct 28 '13 at 11:10


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f367147%2fhow-to-host-a-repository-in-my-own-site-like-a-ppa%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

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]