Preventing apt-get to install X11 packages when installing doxygen












2















I wanted to install Doxygen on my server, but I did not do it through apt-get, because it necessarily came with x11 packages.



    # apt-get install doxygen
The following extra packages will be installed:
(...)
x11-utils x11-xserver-utils xbitmaps xdg-utils
xfonts-encodings xfonts-utils xterm
(...)
After this operation, 578 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.


578 MB is quite a lot, and I guess most of it would have been spent on the graphical environment that I would not use anyway.



So I decided to compile Doxygen from the source code, but I still wonder if there is a clean Debian way to do it. I also encountered a similar problem while trying to get the pdflatex command.










share|improve this question



























    2















    I wanted to install Doxygen on my server, but I did not do it through apt-get, because it necessarily came with x11 packages.



        # apt-get install doxygen
    The following extra packages will be installed:
    (...)
    x11-utils x11-xserver-utils xbitmaps xdg-utils
    xfonts-encodings xfonts-utils xterm
    (...)
    After this operation, 578 MB of additional disk space will be used.
    Do you want to continue [Y/n]? n
    Abort.


    578 MB is quite a lot, and I guess most of it would have been spent on the graphical environment that I would not use anyway.



    So I decided to compile Doxygen from the source code, but I still wonder if there is a clean Debian way to do it. I also encountered a similar problem while trying to get the pdflatex command.










    share|improve this question

























      2












      2








      2








      I wanted to install Doxygen on my server, but I did not do it through apt-get, because it necessarily came with x11 packages.



          # apt-get install doxygen
      The following extra packages will be installed:
      (...)
      x11-utils x11-xserver-utils xbitmaps xdg-utils
      xfonts-encodings xfonts-utils xterm
      (...)
      After this operation, 578 MB of additional disk space will be used.
      Do you want to continue [Y/n]? n
      Abort.


      578 MB is quite a lot, and I guess most of it would have been spent on the graphical environment that I would not use anyway.



      So I decided to compile Doxygen from the source code, but I still wonder if there is a clean Debian way to do it. I also encountered a similar problem while trying to get the pdflatex command.










      share|improve this question














      I wanted to install Doxygen on my server, but I did not do it through apt-get, because it necessarily came with x11 packages.



          # apt-get install doxygen
      The following extra packages will be installed:
      (...)
      x11-utils x11-xserver-utils xbitmaps xdg-utils
      xfonts-encodings xfonts-utils xterm
      (...)
      After this operation, 578 MB of additional disk space will be used.
      Do you want to continue [Y/n]? n
      Abort.


      578 MB is quite a lot, and I guess most of it would have been spent on the graphical environment that I would not use anyway.



      So I decided to compile Doxygen from the source code, but I still wonder if there is a clean Debian way to do it. I also encountered a similar problem while trying to get the pdflatex command.







      debian apt-get






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 16 '14 at 3:25









      antoineMoPaantoineMoPa

      1134




      1134






















          3 Answers
          3






          active

          oldest

          votes


















          0














          That's just crazy. On my system, it wanted to add 700 MB! For my purposes, I got by with just downloading the binary tarball and extracting the single doxygen binary (26MB) into a bin directory.



          Downloads are here: http://www.doxygen.nl/download.html






          share|improve this answer


























          • That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

            – antoineMoPa
            Mar 9 '14 at 23:03



















          0














          The nice thing about apt is it installs all the required dependencies. You can compile from source but it might not run correctly due to unmet dependencies.



          If apt is telling you that you need to install other pieces of software its probably a good idea to do so.






          share|improve this answer































            0














            Yes, there is an easy way to avoid this. The X11 packages are pulled by the recommended packages configuration, more exactly by the recommended doxygen-latex package — this is in Debian 7 (Wheezy), see note below for Debian 8. Debian automatically installs any recommended packages and, because of the latex and ghostscript automatic dependencies, a lot of X11 packages are then installed.



            In your specific case, if you don't need Doxygen to generate latex documents, you can avoid installing the recommended packages by calling apt-get with the --no-install-recommends option. This results in the following installation:



            # apt-get install --no-install-recommends doxygen
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            Suggested packages:
            doxygen-doc doxygen-gui graphviz
            Recommended packages:
            doxygen-latex
            The following NEW packages will be installed:
            doxygen
            0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
            Need to get 2578 kB of archives.
            After this operation, 7348 kB of additional disk space will be used.


            You can also configure Debian to avoid all recommended packages for any installation. Check this other SU question to see how. But, unless you want a specific purpose machine with the minimal set of packages, I wouldn't recommend it.



            On Debian 8 (Jessie), the doxygen packagers have moved this one dependency (doxygen-latex) from the Recommends: field to the Suggests: field. As suggested packages are not installed by default, a regular install of doxygen on Debian 8 isn't so heavy.






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              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%2fsuperuser.com%2fquestions%2f717472%2fpreventing-apt-get-to-install-x11-packages-when-installing-doxygen%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              That's just crazy. On my system, it wanted to add 700 MB! For my purposes, I got by with just downloading the binary tarball and extracting the single doxygen binary (26MB) into a bin directory.



              Downloads are here: http://www.doxygen.nl/download.html






              share|improve this answer


























              • That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

                – antoineMoPa
                Mar 9 '14 at 23:03
















              0














              That's just crazy. On my system, it wanted to add 700 MB! For my purposes, I got by with just downloading the binary tarball and extracting the single doxygen binary (26MB) into a bin directory.



              Downloads are here: http://www.doxygen.nl/download.html






              share|improve this answer


























              • That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

                – antoineMoPa
                Mar 9 '14 at 23:03














              0












              0








              0







              That's just crazy. On my system, it wanted to add 700 MB! For my purposes, I got by with just downloading the binary tarball and extracting the single doxygen binary (26MB) into a bin directory.



              Downloads are here: http://www.doxygen.nl/download.html






              share|improve this answer















              That's just crazy. On my system, it wanted to add 700 MB! For my purposes, I got by with just downloading the binary tarball and extracting the single doxygen binary (26MB) into a bin directory.



              Downloads are here: http://www.doxygen.nl/download.html







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Dec 16 '18 at 11:45









              albert

              1132




              1132










              answered Mar 9 '14 at 17:39









              danortondanorton

              3561217




              3561217













              • That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

                – antoineMoPa
                Mar 9 '14 at 23:03



















              • That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

                – antoineMoPa
                Mar 9 '14 at 23:03

















              That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

              – antoineMoPa
              Mar 9 '14 at 23:03





              That is exactly what I did. Even though it is not exactly the clean debian way, it is the only way to save disk space.

              – antoineMoPa
              Mar 9 '14 at 23:03













              0














              The nice thing about apt is it installs all the required dependencies. You can compile from source but it might not run correctly due to unmet dependencies.



              If apt is telling you that you need to install other pieces of software its probably a good idea to do so.






              share|improve this answer




























                0














                The nice thing about apt is it installs all the required dependencies. You can compile from source but it might not run correctly due to unmet dependencies.



                If apt is telling you that you need to install other pieces of software its probably a good idea to do so.






                share|improve this answer


























                  0












                  0








                  0







                  The nice thing about apt is it installs all the required dependencies. You can compile from source but it might not run correctly due to unmet dependencies.



                  If apt is telling you that you need to install other pieces of software its probably a good idea to do so.






                  share|improve this answer













                  The nice thing about apt is it installs all the required dependencies. You can compile from source but it might not run correctly due to unmet dependencies.



                  If apt is telling you that you need to install other pieces of software its probably a good idea to do so.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 16 '14 at 6:31









                  ScandalistScandalist

                  2,05472637




                  2,05472637























                      0














                      Yes, there is an easy way to avoid this. The X11 packages are pulled by the recommended packages configuration, more exactly by the recommended doxygen-latex package — this is in Debian 7 (Wheezy), see note below for Debian 8. Debian automatically installs any recommended packages and, because of the latex and ghostscript automatic dependencies, a lot of X11 packages are then installed.



                      In your specific case, if you don't need Doxygen to generate latex documents, you can avoid installing the recommended packages by calling apt-get with the --no-install-recommends option. This results in the following installation:



                      # apt-get install --no-install-recommends doxygen
                      Reading package lists... Done
                      Building dependency tree
                      Reading state information... Done
                      Suggested packages:
                      doxygen-doc doxygen-gui graphviz
                      Recommended packages:
                      doxygen-latex
                      The following NEW packages will be installed:
                      doxygen
                      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                      Need to get 2578 kB of archives.
                      After this operation, 7348 kB of additional disk space will be used.


                      You can also configure Debian to avoid all recommended packages for any installation. Check this other SU question to see how. But, unless you want a specific purpose machine with the minimal set of packages, I wouldn't recommend it.



                      On Debian 8 (Jessie), the doxygen packagers have moved this one dependency (doxygen-latex) from the Recommends: field to the Suggests: field. As suggested packages are not installed by default, a regular install of doxygen on Debian 8 isn't so heavy.






                      share|improve this answer






























                        0














                        Yes, there is an easy way to avoid this. The X11 packages are pulled by the recommended packages configuration, more exactly by the recommended doxygen-latex package — this is in Debian 7 (Wheezy), see note below for Debian 8. Debian automatically installs any recommended packages and, because of the latex and ghostscript automatic dependencies, a lot of X11 packages are then installed.



                        In your specific case, if you don't need Doxygen to generate latex documents, you can avoid installing the recommended packages by calling apt-get with the --no-install-recommends option. This results in the following installation:



                        # apt-get install --no-install-recommends doxygen
                        Reading package lists... Done
                        Building dependency tree
                        Reading state information... Done
                        Suggested packages:
                        doxygen-doc doxygen-gui graphviz
                        Recommended packages:
                        doxygen-latex
                        The following NEW packages will be installed:
                        doxygen
                        0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                        Need to get 2578 kB of archives.
                        After this operation, 7348 kB of additional disk space will be used.


                        You can also configure Debian to avoid all recommended packages for any installation. Check this other SU question to see how. But, unless you want a specific purpose machine with the minimal set of packages, I wouldn't recommend it.



                        On Debian 8 (Jessie), the doxygen packagers have moved this one dependency (doxygen-latex) from the Recommends: field to the Suggests: field. As suggested packages are not installed by default, a regular install of doxygen on Debian 8 isn't so heavy.






                        share|improve this answer




























                          0












                          0








                          0







                          Yes, there is an easy way to avoid this. The X11 packages are pulled by the recommended packages configuration, more exactly by the recommended doxygen-latex package — this is in Debian 7 (Wheezy), see note below for Debian 8. Debian automatically installs any recommended packages and, because of the latex and ghostscript automatic dependencies, a lot of X11 packages are then installed.



                          In your specific case, if you don't need Doxygen to generate latex documents, you can avoid installing the recommended packages by calling apt-get with the --no-install-recommends option. This results in the following installation:



                          # apt-get install --no-install-recommends doxygen
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          Suggested packages:
                          doxygen-doc doxygen-gui graphviz
                          Recommended packages:
                          doxygen-latex
                          The following NEW packages will be installed:
                          doxygen
                          0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                          Need to get 2578 kB of archives.
                          After this operation, 7348 kB of additional disk space will be used.


                          You can also configure Debian to avoid all recommended packages for any installation. Check this other SU question to see how. But, unless you want a specific purpose machine with the minimal set of packages, I wouldn't recommend it.



                          On Debian 8 (Jessie), the doxygen packagers have moved this one dependency (doxygen-latex) from the Recommends: field to the Suggests: field. As suggested packages are not installed by default, a regular install of doxygen on Debian 8 isn't so heavy.






                          share|improve this answer















                          Yes, there is an easy way to avoid this. The X11 packages are pulled by the recommended packages configuration, more exactly by the recommended doxygen-latex package — this is in Debian 7 (Wheezy), see note below for Debian 8. Debian automatically installs any recommended packages and, because of the latex and ghostscript automatic dependencies, a lot of X11 packages are then installed.



                          In your specific case, if you don't need Doxygen to generate latex documents, you can avoid installing the recommended packages by calling apt-get with the --no-install-recommends option. This results in the following installation:



                          # apt-get install --no-install-recommends doxygen
                          Reading package lists... Done
                          Building dependency tree
                          Reading state information... Done
                          Suggested packages:
                          doxygen-doc doxygen-gui graphviz
                          Recommended packages:
                          doxygen-latex
                          The following NEW packages will be installed:
                          doxygen
                          0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                          Need to get 2578 kB of archives.
                          After this operation, 7348 kB of additional disk space will be used.


                          You can also configure Debian to avoid all recommended packages for any installation. Check this other SU question to see how. But, unless you want a specific purpose machine with the minimal set of packages, I wouldn't recommend it.



                          On Debian 8 (Jessie), the doxygen packagers have moved this one dependency (doxygen-latex) from the Recommends: field to the Suggests: field. As suggested packages are not installed by default, a regular install of doxygen on Debian 8 isn't so heavy.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited May 18 '17 at 18:11

























                          answered May 18 '17 at 18:06









                          ToninTonin

                          578520




                          578520






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • 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%2fsuperuser.com%2fquestions%2f717472%2fpreventing-apt-get-to-install-x11-packages-when-installing-doxygen%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

                              Terni

                              A new problem with tex4ht and tikz

                              Sun Ra