How do I remove all i386 architecture packages from my Debian installation?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







33















I added foreign architecture i386 to my Debian amd64 installtion. How do I remove it? When I try this command: dpkg --remove-architecture i386, I am told to first remove all i386 packages.










share|improve this question





























    33















    I added foreign architecture i386 to my Debian amd64 installtion. How do I remove it? When I try this command: dpkg --remove-architecture i386, I am told to first remove all i386 packages.










    share|improve this question

























      33












      33








      33


      11






      I added foreign architecture i386 to my Debian amd64 installtion. How do I remove it? When I try this command: dpkg --remove-architecture i386, I am told to first remove all i386 packages.










      share|improve this question














      I added foreign architecture i386 to my Debian amd64 installtion. How do I remove it? When I try this command: dpkg --remove-architecture i386, I am told to first remove all i386 packages.







      debian 32-vs-64-bit






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 9 '14 at 12:01









      kevinarpekevinarpe

      1,32331726




      1,32331726






















          3 Answers
          3






          active

          oldest

          votes


















          41














          I am answering my own question after gathering important information from other blog posts.




          1. Show what foreign architectures are installed: dpkg --print-foreign-architectures


            • Might show: i386



          2. Remove all i386 packages: apt-get purge ".*:i386"


            • Note: The purge keyword (instead of remove) removes all configuration files associated with the packages you're uninstalling. (Thanks PCGuyIV!)



          3. Now you can remove the i386 architecture: dpkg --remove-architecture i386






          share|improve this answer





















          • 2





            Cheers. This was perfect.

            – Glenn
            Oct 1 '14 at 22:44











          • @kevinarpe You might accept this answer as the best answer.

            – 71GA
            Sep 12 '18 at 7:39



















          17














          I would use "purge" instead of "remove".



          ~# apt-get purge ".*:i386"
          ~# dpkg --remove-architecture i386


          The "purge" keyword removes all configuration files associated with the packages you're uninstalling.






          share|improve this answer





















          • 2





            Can you expand your answer to explain the difference and ramifications?

            – fixer1234
            Jul 12 '15 at 23:07



















          -1














          Try



          dpkg -r $(dpkg -l | grep armhf | awk '{ print $2 }')





          share|improve this answer


























          • That's obviously for the armhf architecture - use i386 in your case.

            – Andrew
            Feb 9 at 1:18











          • So what is the actual solution?

            – fixer1234
            Feb 9 at 4:03












          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%2f714391%2fhow-do-i-remove-all-i386-architecture-packages-from-my-debian-installation%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









          41














          I am answering my own question after gathering important information from other blog posts.




          1. Show what foreign architectures are installed: dpkg --print-foreign-architectures


            • Might show: i386



          2. Remove all i386 packages: apt-get purge ".*:i386"


            • Note: The purge keyword (instead of remove) removes all configuration files associated with the packages you're uninstalling. (Thanks PCGuyIV!)



          3. Now you can remove the i386 architecture: dpkg --remove-architecture i386






          share|improve this answer





















          • 2





            Cheers. This was perfect.

            – Glenn
            Oct 1 '14 at 22:44











          • @kevinarpe You might accept this answer as the best answer.

            – 71GA
            Sep 12 '18 at 7:39
















          41














          I am answering my own question after gathering important information from other blog posts.




          1. Show what foreign architectures are installed: dpkg --print-foreign-architectures


            • Might show: i386



          2. Remove all i386 packages: apt-get purge ".*:i386"


            • Note: The purge keyword (instead of remove) removes all configuration files associated with the packages you're uninstalling. (Thanks PCGuyIV!)



          3. Now you can remove the i386 architecture: dpkg --remove-architecture i386






          share|improve this answer





















          • 2





            Cheers. This was perfect.

            – Glenn
            Oct 1 '14 at 22:44











          • @kevinarpe You might accept this answer as the best answer.

            – 71GA
            Sep 12 '18 at 7:39














          41












          41








          41







          I am answering my own question after gathering important information from other blog posts.




          1. Show what foreign architectures are installed: dpkg --print-foreign-architectures


            • Might show: i386



          2. Remove all i386 packages: apt-get purge ".*:i386"


            • Note: The purge keyword (instead of remove) removes all configuration files associated with the packages you're uninstalling. (Thanks PCGuyIV!)



          3. Now you can remove the i386 architecture: dpkg --remove-architecture i386






          share|improve this answer















          I am answering my own question after gathering important information from other blog posts.




          1. Show what foreign architectures are installed: dpkg --print-foreign-architectures


            • Might show: i386



          2. Remove all i386 packages: apt-get purge ".*:i386"


            • Note: The purge keyword (instead of remove) removes all configuration files associated with the packages you're uninstalling. (Thanks PCGuyIV!)



          3. Now you can remove the i386 architecture: dpkg --remove-architecture i386







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 24 '18 at 2:43

























          answered Feb 9 '14 at 12:03









          kevinarpekevinarpe

          1,32331726




          1,32331726








          • 2





            Cheers. This was perfect.

            – Glenn
            Oct 1 '14 at 22:44











          • @kevinarpe You might accept this answer as the best answer.

            – 71GA
            Sep 12 '18 at 7:39














          • 2





            Cheers. This was perfect.

            – Glenn
            Oct 1 '14 at 22:44











          • @kevinarpe You might accept this answer as the best answer.

            – 71GA
            Sep 12 '18 at 7:39








          2




          2





          Cheers. This was perfect.

          – Glenn
          Oct 1 '14 at 22:44





          Cheers. This was perfect.

          – Glenn
          Oct 1 '14 at 22:44













          @kevinarpe You might accept this answer as the best answer.

          – 71GA
          Sep 12 '18 at 7:39





          @kevinarpe You might accept this answer as the best answer.

          – 71GA
          Sep 12 '18 at 7:39













          17














          I would use "purge" instead of "remove".



          ~# apt-get purge ".*:i386"
          ~# dpkg --remove-architecture i386


          The "purge" keyword removes all configuration files associated with the packages you're uninstalling.






          share|improve this answer





















          • 2





            Can you expand your answer to explain the difference and ramifications?

            – fixer1234
            Jul 12 '15 at 23:07
















          17














          I would use "purge" instead of "remove".



          ~# apt-get purge ".*:i386"
          ~# dpkg --remove-architecture i386


          The "purge" keyword removes all configuration files associated with the packages you're uninstalling.






          share|improve this answer





















          • 2





            Can you expand your answer to explain the difference and ramifications?

            – fixer1234
            Jul 12 '15 at 23:07














          17












          17








          17







          I would use "purge" instead of "remove".



          ~# apt-get purge ".*:i386"
          ~# dpkg --remove-architecture i386


          The "purge" keyword removes all configuration files associated with the packages you're uninstalling.






          share|improve this answer















          I would use "purge" instead of "remove".



          ~# apt-get purge ".*:i386"
          ~# dpkg --remove-architecture i386


          The "purge" keyword removes all configuration files associated with the packages you're uninstalling.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 13 '15 at 0:25









          nc4pk

          7,292115268




          7,292115268










          answered Jul 12 '15 at 22:05









          PCGuyIVPCGuyIV

          17113




          17113








          • 2





            Can you expand your answer to explain the difference and ramifications?

            – fixer1234
            Jul 12 '15 at 23:07














          • 2





            Can you expand your answer to explain the difference and ramifications?

            – fixer1234
            Jul 12 '15 at 23:07








          2




          2





          Can you expand your answer to explain the difference and ramifications?

          – fixer1234
          Jul 12 '15 at 23:07





          Can you expand your answer to explain the difference and ramifications?

          – fixer1234
          Jul 12 '15 at 23:07











          -1














          Try



          dpkg -r $(dpkg -l | grep armhf | awk '{ print $2 }')





          share|improve this answer


























          • That's obviously for the armhf architecture - use i386 in your case.

            – Andrew
            Feb 9 at 1:18











          • So what is the actual solution?

            – fixer1234
            Feb 9 at 4:03
















          -1














          Try



          dpkg -r $(dpkg -l | grep armhf | awk '{ print $2 }')





          share|improve this answer


























          • That's obviously for the armhf architecture - use i386 in your case.

            – Andrew
            Feb 9 at 1:18











          • So what is the actual solution?

            – fixer1234
            Feb 9 at 4:03














          -1












          -1








          -1







          Try



          dpkg -r $(dpkg -l | grep armhf | awk '{ print $2 }')





          share|improve this answer















          Try



          dpkg -r $(dpkg -l | grep armhf | awk '{ print $2 }')






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 9 at 7:24









          Mureinik

          2,91271825




          2,91271825










          answered Feb 9 at 1:17









          AndrewAndrew

          1




          1













          • That's obviously for the armhf architecture - use i386 in your case.

            – Andrew
            Feb 9 at 1:18











          • So what is the actual solution?

            – fixer1234
            Feb 9 at 4:03



















          • That's obviously for the armhf architecture - use i386 in your case.

            – Andrew
            Feb 9 at 1:18











          • So what is the actual solution?

            – fixer1234
            Feb 9 at 4:03

















          That's obviously for the armhf architecture - use i386 in your case.

          – Andrew
          Feb 9 at 1:18





          That's obviously for the armhf architecture - use i386 in your case.

          – Andrew
          Feb 9 at 1:18













          So what is the actual solution?

          – fixer1234
          Feb 9 at 4:03





          So what is the actual solution?

          – fixer1234
          Feb 9 at 4:03


















          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%2f714391%2fhow-do-i-remove-all-i386-architecture-packages-from-my-debian-installation%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

          Сан-Квентин

          8-я гвардейская общевойсковая армия

          Алькесар