How do I install dcm2niix?












1














I am trying to install the program dcm2niix onto Ubuntu on Windows 10. I have found the .exe file but nothing happens when I click on it. I also tried sudo apt install dcm2niix on the terminal and it was unable to locate the package. Ubuntu can find dcm2nii but not this newer version that is dcm2niix.



I also found the program here but I do not know how to open these .deb files: https://packages.ubuntu.com/bionic/dcm2niix



I am just wondering how I can get this program so I can run it as a command on Ubuntu.










share|improve this question





























    1














    I am trying to install the program dcm2niix onto Ubuntu on Windows 10. I have found the .exe file but nothing happens when I click on it. I also tried sudo apt install dcm2niix on the terminal and it was unable to locate the package. Ubuntu can find dcm2nii but not this newer version that is dcm2niix.



    I also found the program here but I do not know how to open these .deb files: https://packages.ubuntu.com/bionic/dcm2niix



    I am just wondering how I can get this program so I can run it as a command on Ubuntu.










    share|improve this question



























      1












      1








      1







      I am trying to install the program dcm2niix onto Ubuntu on Windows 10. I have found the .exe file but nothing happens when I click on it. I also tried sudo apt install dcm2niix on the terminal and it was unable to locate the package. Ubuntu can find dcm2nii but not this newer version that is dcm2niix.



      I also found the program here but I do not know how to open these .deb files: https://packages.ubuntu.com/bionic/dcm2niix



      I am just wondering how I can get this program so I can run it as a command on Ubuntu.










      share|improve this question















      I am trying to install the program dcm2niix onto Ubuntu on Windows 10. I have found the .exe file but nothing happens when I click on it. I also tried sudo apt install dcm2niix on the terminal and it was unable to locate the package. Ubuntu can find dcm2nii but not this newer version that is dcm2niix.



      I also found the program here but I do not know how to open these .deb files: https://packages.ubuntu.com/bionic/dcm2niix



      I am just wondering how I can get this program so I can run it as a command on Ubuntu.







      apt software-installation windows-10 windows-subsystem-for-linux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 23 '18 at 16:14









      dessert

      22.2k56198




      22.2k56198










      asked Jun 4 '18 at 20:50









      Justin S.

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          3














          If you find a package on https://packages.ubuntu.com for your release that means you can install it using apt and this exact package name, provided you have its repository (universe in this case) activated in your software sources. If you don’t or don’t know, you can do so with:



          sudo add-apt-repository universe


          After that install the package with:



          sudo apt install dcm2niix


          When installed successfully you have the commands dcm2niix as well as dcm2niibatch at your disposal, as well as man pages for both these commands. An example command line converting images from /path/to/dicom_dir, compressing them with pigz (-z option) and saving them in /path/to/nifti_dir (-o option) is:



          dcm2niix -o /path/to/nifti_dir -z y /path/to/dicom_dir


          Further reading




          • How do I enable the "Universe" repository?

          • man dcm2niix

          • man dcm2niibatch






          share|improve this answer























            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%2f1043618%2fhow-do-i-install-dcm2niix%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









            3














            If you find a package on https://packages.ubuntu.com for your release that means you can install it using apt and this exact package name, provided you have its repository (universe in this case) activated in your software sources. If you don’t or don’t know, you can do so with:



            sudo add-apt-repository universe


            After that install the package with:



            sudo apt install dcm2niix


            When installed successfully you have the commands dcm2niix as well as dcm2niibatch at your disposal, as well as man pages for both these commands. An example command line converting images from /path/to/dicom_dir, compressing them with pigz (-z option) and saving them in /path/to/nifti_dir (-o option) is:



            dcm2niix -o /path/to/nifti_dir -z y /path/to/dicom_dir


            Further reading




            • How do I enable the "Universe" repository?

            • man dcm2niix

            • man dcm2niibatch






            share|improve this answer




























              3














              If you find a package on https://packages.ubuntu.com for your release that means you can install it using apt and this exact package name, provided you have its repository (universe in this case) activated in your software sources. If you don’t or don’t know, you can do so with:



              sudo add-apt-repository universe


              After that install the package with:



              sudo apt install dcm2niix


              When installed successfully you have the commands dcm2niix as well as dcm2niibatch at your disposal, as well as man pages for both these commands. An example command line converting images from /path/to/dicom_dir, compressing them with pigz (-z option) and saving them in /path/to/nifti_dir (-o option) is:



              dcm2niix -o /path/to/nifti_dir -z y /path/to/dicom_dir


              Further reading




              • How do I enable the "Universe" repository?

              • man dcm2niix

              • man dcm2niibatch






              share|improve this answer


























                3












                3








                3






                If you find a package on https://packages.ubuntu.com for your release that means you can install it using apt and this exact package name, provided you have its repository (universe in this case) activated in your software sources. If you don’t or don’t know, you can do so with:



                sudo add-apt-repository universe


                After that install the package with:



                sudo apt install dcm2niix


                When installed successfully you have the commands dcm2niix as well as dcm2niibatch at your disposal, as well as man pages for both these commands. An example command line converting images from /path/to/dicom_dir, compressing them with pigz (-z option) and saving them in /path/to/nifti_dir (-o option) is:



                dcm2niix -o /path/to/nifti_dir -z y /path/to/dicom_dir


                Further reading




                • How do I enable the "Universe" repository?

                • man dcm2niix

                • man dcm2niibatch






                share|improve this answer














                If you find a package on https://packages.ubuntu.com for your release that means you can install it using apt and this exact package name, provided you have its repository (universe in this case) activated in your software sources. If you don’t or don’t know, you can do so with:



                sudo add-apt-repository universe


                After that install the package with:



                sudo apt install dcm2niix


                When installed successfully you have the commands dcm2niix as well as dcm2niibatch at your disposal, as well as man pages for both these commands. An example command line converting images from /path/to/dicom_dir, compressing them with pigz (-z option) and saving them in /path/to/nifti_dir (-o option) is:



                dcm2niix -o /path/to/nifti_dir -z y /path/to/dicom_dir


                Further reading




                • How do I enable the "Universe" repository?

                • man dcm2niix

                • man dcm2niibatch







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 30 '18 at 22:28

























                answered Dec 23 '18 at 15:52









                dessert

                22.2k56198




                22.2k56198






























                    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.





                    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%2faskubuntu.com%2fquestions%2f1043618%2fhow-do-i-install-dcm2niix%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

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    File:DeusFollowingSea.jpg