Change the default program installation location?












2














I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).



Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.










share|improve this question
























  • See also Where should an application be installed if it consists of multiple files?
    – Gilles
    Feb 20 '16 at 20:41
















2














I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).



Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.










share|improve this question
























  • See also Where should an application be installed if it consists of multiple files?
    – Gilles
    Feb 20 '16 at 20:41














2












2








2







I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).



Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.










share|improve this question















I have learn linux recently, but i confused about how linux system works, especially about how linux handle program files, in windows all program is in one directory Programfiles (and some in Windows) but in linux, when i install program automaticly (apt) i think its "randomly" place the program files not in one place (not just programfiles folder).



Can i change DEFAULT place/folder of program in linux? I have linux mint 17.3 64 bit.







software-installation directory-structure






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 16 at 11:49









Rui F Ribeiro

38.9k1479129




38.9k1479129










asked Feb 20 '16 at 16:04









Ardi Renaldi

465




465












  • See also Where should an application be installed if it consists of multiple files?
    – Gilles
    Feb 20 '16 at 20:41


















  • See also Where should an application be installed if it consists of multiple files?
    – Gilles
    Feb 20 '16 at 20:41
















See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41




See also Where should an application be installed if it consists of multiple files?
– Gilles
Feb 20 '16 at 20:41










2 Answers
2






active

oldest

votes


















2














In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).



If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).






share|improve this answer































    1














    Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.



    Further reading:




    • Relocatable Debian packages (like rpm prefix)

    • Run time installation directory of debian package contents

    • creating relocatable packages with dpkg






    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%2f264581%2fchange-the-default-program-installation-location%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).



      If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).






      share|improve this answer




























        2














        In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).



        If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).






        share|improve this answer


























          2












          2








          2






          In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).



          If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).






          share|improve this answer














          In short: As long as you use the package manager that comes with your Linux distribution, you can't change the place where the binaries are installed. However, the installation paths follow a long-established convention (with minor differences between distributions).



          If you build packages on your own you could, in theory, choose the installation prefix yourself, but usually departing from the conventions comes with some kind of penalty (read: It's a bad idea if you don't know exactly what you're doing).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 20 '16 at 16:20

























          answered Feb 20 '16 at 16:14









          Murphy

          1,7661517




          1,7661517

























              1














              Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.



              Further reading:




              • Relocatable Debian packages (like rpm prefix)

              • Run time installation directory of debian package contents

              • creating relocatable packages with dpkg






              share|improve this answer




























                1














                Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.



                Further reading:




                • Relocatable Debian packages (like rpm prefix)

                • Run time installation directory of debian package contents

                • creating relocatable packages with dpkg






                share|improve this answer


























                  1












                  1








                  1






                  Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.



                  Further reading:




                  • Relocatable Debian packages (like rpm prefix)

                  • Run time installation directory of debian package contents

                  • creating relocatable packages with dpkg






                  share|improve this answer














                  Generally not: most programs on Linux are packages, which could be relocatable. However few are setup to allow relocation. In particular, systems (such as Mint) derived from Debian do not provide relocatable packages. RPM-based systems may include some relocatable packages.



                  Further reading:




                  • Relocatable Debian packages (like rpm prefix)

                  • Run time installation directory of debian package contents

                  • creating relocatable packages with dpkg







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 23 '17 at 12:40









                  Community

                  1




                  1










                  answered Feb 20 '16 at 16:13









                  Thomas Dickey

                  52k594164




                  52k594164






























                      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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f264581%2fchange-the-default-program-installation-location%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

                      Morgemoulin

                      Scott Moir

                      Souastre