Gentoo: how to install binutils from binary package (because I accidentally deleted it)





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







1















I accidentally deleted my binutils and tried to install it as a binary package.



However, emerge is always complaining that there is no package by that name.



I downloaded the packages from here and simply copied it into /usr/portage/packages (and later also in distfiles).



After that I did chown portage:portage and tried to install the package:



sudo emerge --ask --usepkgonly binutils-2.24-r3.tbz2 


it tells me to adjust PKGDIR, but it is already set to /usr/portage/packages.



After that I tried this:



sudo emerge --ask --usepkgonly =binutils-2.24-r3


which tells me:



emerge: there are no binary packages to satisfy "=binutils-2.24-r3".


I don't know where my mistake is; it's written correctly and has the right permissions and is in the right location.... (make.conf locations are all default).



The last post on this Stack Overflow question didn't help either.



I just found what appears to be a solution:
Fatal mistake: Uninstalled sys-devel/binutils - emerge don't work anymore
(didn't see it before); however, it doesn't try to solve the problem using binary packages, so it doesn't answer this question










share|improve this question































    1















    I accidentally deleted my binutils and tried to install it as a binary package.



    However, emerge is always complaining that there is no package by that name.



    I downloaded the packages from here and simply copied it into /usr/portage/packages (and later also in distfiles).



    After that I did chown portage:portage and tried to install the package:



    sudo emerge --ask --usepkgonly binutils-2.24-r3.tbz2 


    it tells me to adjust PKGDIR, but it is already set to /usr/portage/packages.



    After that I tried this:



    sudo emerge --ask --usepkgonly =binutils-2.24-r3


    which tells me:



    emerge: there are no binary packages to satisfy "=binutils-2.24-r3".


    I don't know where my mistake is; it's written correctly and has the right permissions and is in the right location.... (make.conf locations are all default).



    The last post on this Stack Overflow question didn't help either.



    I just found what appears to be a solution:
    Fatal mistake: Uninstalled sys-devel/binutils - emerge don't work anymore
    (didn't see it before); however, it doesn't try to solve the problem using binary packages, so it doesn't answer this question










    share|improve this question



























      1












      1








      1








      I accidentally deleted my binutils and tried to install it as a binary package.



      However, emerge is always complaining that there is no package by that name.



      I downloaded the packages from here and simply copied it into /usr/portage/packages (and later also in distfiles).



      After that I did chown portage:portage and tried to install the package:



      sudo emerge --ask --usepkgonly binutils-2.24-r3.tbz2 


      it tells me to adjust PKGDIR, but it is already set to /usr/portage/packages.



      After that I tried this:



      sudo emerge --ask --usepkgonly =binutils-2.24-r3


      which tells me:



      emerge: there are no binary packages to satisfy "=binutils-2.24-r3".


      I don't know where my mistake is; it's written correctly and has the right permissions and is in the right location.... (make.conf locations are all default).



      The last post on this Stack Overflow question didn't help either.



      I just found what appears to be a solution:
      Fatal mistake: Uninstalled sys-devel/binutils - emerge don't work anymore
      (didn't see it before); however, it doesn't try to solve the problem using binary packages, so it doesn't answer this question










      share|improve this question
















      I accidentally deleted my binutils and tried to install it as a binary package.



      However, emerge is always complaining that there is no package by that name.



      I downloaded the packages from here and simply copied it into /usr/portage/packages (and later also in distfiles).



      After that I did chown portage:portage and tried to install the package:



      sudo emerge --ask --usepkgonly binutils-2.24-r3.tbz2 


      it tells me to adjust PKGDIR, but it is already set to /usr/portage/packages.



      After that I tried this:



      sudo emerge --ask --usepkgonly =binutils-2.24-r3


      which tells me:



      emerge: there are no binary packages to satisfy "=binutils-2.24-r3".


      I don't know where my mistake is; it's written correctly and has the right permissions and is in the right location.... (make.conf locations are all default).



      The last post on this Stack Overflow question didn't help either.



      I just found what appears to be a solution:
      Fatal mistake: Uninstalled sys-devel/binutils - emerge don't work anymore
      (didn't see it before); however, it doesn't try to solve the problem using binary packages, so it doesn't answer this question







      linux gentoo






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 23 '17 at 12:41









      Community

      1




      1










      asked Nov 26 '16 at 23:46









      MADforFUNandHappyMADforFUNandHappy

      367313




      367313






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Probably, portage fails some internal magic because of some missing utilities from binutils.
          You can just unpack binary package in your root partition with tar -xjf /usr/portage/packages/binutils*bz2 -C /. Then you can try to reemerge binutils.



          Also, are you sure that binpackage you've dowloaded is really tbz2, but not, say, html?






          share|improve this answer
























          • I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

            – MADforFUNandHappy
            Apr 16 '17 at 12:37











          • It would be nice :) You can re-ask the question later if any :)

            – Vadim A. Misbakh-Soloviov
            May 10 '17 at 5:45





















          0














          You need to remove the information about the package from the Packages file, everything from BUILD_TIME to REPO.



          Then you can do something like: emerge --usepkg =media-gfx/graphite2-1.3.13 and it will work.






          share|improve this answer
























          • Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

            – juniorRubyist
            Feb 8 at 23:17












          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%2f1150096%2fgentoo-how-to-install-binutils-from-binary-package-because-i-accidentally-dele%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









          1














          Probably, portage fails some internal magic because of some missing utilities from binutils.
          You can just unpack binary package in your root partition with tar -xjf /usr/portage/packages/binutils*bz2 -C /. Then you can try to reemerge binutils.



          Also, are you sure that binpackage you've dowloaded is really tbz2, but not, say, html?






          share|improve this answer
























          • I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

            – MADforFUNandHappy
            Apr 16 '17 at 12:37











          • It would be nice :) You can re-ask the question later if any :)

            – Vadim A. Misbakh-Soloviov
            May 10 '17 at 5:45


















          1














          Probably, portage fails some internal magic because of some missing utilities from binutils.
          You can just unpack binary package in your root partition with tar -xjf /usr/portage/packages/binutils*bz2 -C /. Then you can try to reemerge binutils.



          Also, are you sure that binpackage you've dowloaded is really tbz2, but not, say, html?






          share|improve this answer
























          • I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

            – MADforFUNandHappy
            Apr 16 '17 at 12:37











          • It would be nice :) You can re-ask the question later if any :)

            – Vadim A. Misbakh-Soloviov
            May 10 '17 at 5:45
















          1












          1








          1







          Probably, portage fails some internal magic because of some missing utilities from binutils.
          You can just unpack binary package in your root partition with tar -xjf /usr/portage/packages/binutils*bz2 -C /. Then you can try to reemerge binutils.



          Also, are you sure that binpackage you've dowloaded is really tbz2, but not, say, html?






          share|improve this answer













          Probably, portage fails some internal magic because of some missing utilities from binutils.
          You can just unpack binary package in your root partition with tar -xjf /usr/portage/packages/binutils*bz2 -C /. Then you can try to reemerge binutils.



          Also, are you sure that binpackage you've dowloaded is really tbz2, but not, say, html?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 15 '17 at 7:04









          Vadim A. Misbakh-SoloviovVadim A. Misbakh-Soloviov

          815




          815













          • I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

            – MADforFUNandHappy
            Apr 16 '17 at 12:37











          • It would be nice :) You can re-ask the question later if any :)

            – Vadim A. Misbakh-Soloviov
            May 10 '17 at 5:45





















          • I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

            – MADforFUNandHappy
            Apr 16 '17 at 12:37











          • It would be nice :) You can re-ask the question later if any :)

            – Vadim A. Misbakh-Soloviov
            May 10 '17 at 5:45



















          I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

          – MADforFUNandHappy
          Apr 16 '17 at 12:37





          I did a new install, but as far as I can remember it was tbz2, however I didn't try to unpack it directly... So I guess you are right but I can't confirm this. Should I mark the answer as solved?

          – MADforFUNandHappy
          Apr 16 '17 at 12:37













          It would be nice :) You can re-ask the question later if any :)

          – Vadim A. Misbakh-Soloviov
          May 10 '17 at 5:45







          It would be nice :) You can re-ask the question later if any :)

          – Vadim A. Misbakh-Soloviov
          May 10 '17 at 5:45















          0














          You need to remove the information about the package from the Packages file, everything from BUILD_TIME to REPO.



          Then you can do something like: emerge --usepkg =media-gfx/graphite2-1.3.13 and it will work.






          share|improve this answer
























          • Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

            – juniorRubyist
            Feb 8 at 23:17
















          0














          You need to remove the information about the package from the Packages file, everything from BUILD_TIME to REPO.



          Then you can do something like: emerge --usepkg =media-gfx/graphite2-1.3.13 and it will work.






          share|improve this answer
























          • Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

            – juniorRubyist
            Feb 8 at 23:17














          0












          0








          0







          You need to remove the information about the package from the Packages file, everything from BUILD_TIME to REPO.



          Then you can do something like: emerge --usepkg =media-gfx/graphite2-1.3.13 and it will work.






          share|improve this answer













          You need to remove the information about the package from the Packages file, everything from BUILD_TIME to REPO.



          Then you can do something like: emerge --usepkg =media-gfx/graphite2-1.3.13 and it will work.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 8 at 22:46









          Arnaldo MontoyaArnaldo Montoya

          1




          1













          • Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

            – juniorRubyist
            Feb 8 at 23:17



















          • Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

            – juniorRubyist
            Feb 8 at 23:17

















          Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

          – juniorRubyist
          Feb 8 at 23:17





          Welcome to Super User. Would you like to elaborate on what your suggestion is and how to do it? This will better help the OP and other visitors

          – juniorRubyist
          Feb 8 at 23:17


















          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%2f1150096%2fgentoo-how-to-install-binutils-from-binary-package-because-i-accidentally-dele%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

          Список кардиналов, возведённых папой римским Каликстом III

          Deduzione

          Mysql.sock missing - “Can't connect to local MySQL server through socket”