How to install apt-get or YUM on Mac OS X











up vote
51
down vote

favorite
18












I want to use either of apt-get or yum.



How to install them and make them successful running?










share|improve this question




















  • 2




    Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install?
    – a CVn
    Jun 26 '13 at 11:08






  • 1




    Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do?
    – schaiba
    Jun 26 '13 at 11:30








  • 2




    obviously OP is asking about the equivalent -- seriously...
    – aequalsb
    Feb 12 '17 at 17:31















up vote
51
down vote

favorite
18












I want to use either of apt-get or yum.



How to install them and make them successful running?










share|improve this question




















  • 2




    Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install?
    – a CVn
    Jun 26 '13 at 11:08






  • 1




    Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do?
    – schaiba
    Jun 26 '13 at 11:30








  • 2




    obviously OP is asking about the equivalent -- seriously...
    – aequalsb
    Feb 12 '17 at 17:31













up vote
51
down vote

favorite
18









up vote
51
down vote

favorite
18






18





I want to use either of apt-get or yum.



How to install them and make them successful running?










share|improve this question















I want to use either of apt-get or yum.



How to install them and make them successful running?







osx package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 25 at 14:41









Rui F Ribeiro

38.4k1479128




38.4k1479128










asked Jun 26 '13 at 10:47









Karan-41317

361135




361135








  • 2




    Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install?
    – a CVn
    Jun 26 '13 at 11:08






  • 1




    Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do?
    – schaiba
    Jun 26 '13 at 11:30








  • 2




    obviously OP is asking about the equivalent -- seriously...
    – aequalsb
    Feb 12 '17 at 17:31














  • 2




    Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install?
    – a CVn
    Jun 26 '13 at 11:08






  • 1




    Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do?
    – schaiba
    Jun 26 '13 at 11:30








  • 2




    obviously OP is asking about the equivalent -- seriously...
    – aequalsb
    Feb 12 '17 at 17:31








2




2




Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install?
– a CVn
Jun 26 '13 at 11:08




Why do you want to install them? What software do you want to install that you expect to find as .deb or .rpm files which will work on an OS X install?
– a CVn
Jun 26 '13 at 11:08




1




1




Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do?
– schaiba
Jun 26 '13 at 11:30






Both utilities are too Linux-specific (and/or too Fedora/Debian-specific) so they won't work on OSX without serious effort on your part,so Michael's question stands: what exactly is it you want to do?
– schaiba
Jun 26 '13 at 11:30






2




2




obviously OP is asking about the equivalent -- seriously...
– aequalsb
Feb 12 '17 at 17:31




obviously OP is asking about the equivalent -- seriously...
– aequalsb
Feb 12 '17 at 17:31










5 Answers
5






active

oldest

votes

















up vote
56
down vote



accepted










If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.




  1. Homebrew: http://brew.sh

  2. Macports: http://www.macports.org


You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.






share|improve this answer

















  • 1




    There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
    – rubynorails
    Dec 12 '15 at 4:57








  • 3




    what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
    – Daniele
    Jun 14 '17 at 15:20


















up vote
8
down vote













You need to install either Homebrew or YUM. I recommend using HomeBrew. To install it enter the following command in terminal.



ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 


then use brew install Package_name






share|improve this answer



















  • 1




    Does ruby come pre-installed with each OSX?
    – Anthon
    Apr 3 '15 at 14:07










  • @Anthon: Yes, for several years now.
    – cdunn2001
    May 15 '15 at 8:23










  • Thanks for including the command line download for HomeBrew. Beautiful.
    – shiri
    Oct 9 '17 at 9:05


















up vote
6
down vote













It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version).
Homebrew, to me is the best package manager...






share|improve this answer




























    up vote
    0
    down vote













    These are some other way



    visit https://sdkman.io/



    # you can use sdk install command to install software
    $ sdk install package_name


    examples:



    MacdeMacBook-Pro$ sdk install java 8.0.191-oracle

    Oracle requires that you agree with the Oracle Binary Code License Agreement
    prior to installation. The license agreement can be found at:

    http://www.oracle.com/technetwork/java/javase/terms/license/index.html

    Do you agree to the terms of this agreement? (Y/n): Y

    Downloading: java 8.0.191-oracle

    In progress...
    ########################## 100.0%
    We will be needing super powers...
    Password:

    Repackaging Java 8u191...
    Attaching to the DMG...
    Mounting DMG as Volume...
    Volume(s) mounted successfully
    Installing PKG inside DMG...
    installer: Package name is JDK 8 Update 191
    installer: Installing at base path /
    installer: The install was successful.
    Copy JDK Home to temp folder...
    Preparing archive...
    Unmounting volume...
    "/Volumes/JDK 8 Update 191" unmounted successfully.
    Done repackaging...
    Cleaning up cookie...

    Installing: java 8.0.191-oracle
    Done installing!

    Setting java 8.0.191-oracle as default.
    MacdeMacBook-Pro:Homebrew mac$ java -version
    java version "1.8.0_191"
    Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)





    share|improve this answer






























      up vote
      -1
      down vote













      install pkg



      $ sdk install or i [version]



      uninstall pkg



      $ sdk uninstall or rm



      list avaliable pkg



      $ sdk list or ls [candidate]
      #
      $ sdk use or u [version]
      $ sdk default or d [version]
      $ sdk current or c [candidate]
      $ sdk upgrade or ug [candidate]



      show current version of sdk manager



      $ sdk version or v
      $ sdk broadcast or b
      $ sdk help or h
      $ sdk offline [enable|disable]
      $ sdk selfupdate [force]
      $ sdk update
      $ sdk flush






      share|improve this answer





















      • This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
        – TooTea
        Nov 29 at 10:23











      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',
      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%2f80711%2fhow-to-install-apt-get-or-yum-on-mac-os-x%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      56
      down vote



      accepted










      If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.




      1. Homebrew: http://brew.sh

      2. Macports: http://www.macports.org


      You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.






      share|improve this answer

















      • 1




        There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
        – rubynorails
        Dec 12 '15 at 4:57








      • 3




        what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
        – Daniele
        Jun 14 '17 at 15:20















      up vote
      56
      down vote



      accepted










      If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.




      1. Homebrew: http://brew.sh

      2. Macports: http://www.macports.org


      You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.






      share|improve this answer

















      • 1




        There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
        – rubynorails
        Dec 12 '15 at 4:57








      • 3




        what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
        – Daniele
        Jun 14 '17 at 15:20













      up vote
      56
      down vote



      accepted







      up vote
      56
      down vote



      accepted






      If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.




      1. Homebrew: http://brew.sh

      2. Macports: http://www.macports.org


      You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.






      share|improve this answer












      If you want the equivalent to apt-get or yum on Mac OS X, you have two choices.




      1. Homebrew: http://brew.sh

      2. Macports: http://www.macports.org


      You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jun 26 '13 at 12:00









      prosseek

      2,760113438




      2,760113438








      • 1




        There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
        – rubynorails
        Dec 12 '15 at 4:57








      • 3




        what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
        – Daniele
        Jun 14 '17 at 15:20














      • 1




        There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
        – rubynorails
        Dec 12 '15 at 4:57








      • 3




        what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
        – Daniele
        Jun 14 '17 at 15:20








      1




      1




      There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
      – rubynorails
      Dec 12 '15 at 4:57






      There are guides on how to run Hombrew side-by-side with Macports or Fink, but it is generally recommended to choose one and stick with it. Homebrew is pretty much the standard these days. There is only a single instance I can recall personally, where a package I needed was available via Macports and not Homebrew, and that was an X11-based GUI browser -- Firefox, I believe, which would have been really nice to browse with over SSH in some specific localhost scenario I was working with at the time. It's just a personal preference thing, mostly. Homebrew is the best and most user-friendly, IMHO.
      – rubynorails
      Dec 12 '15 at 4:57






      3




      3




      what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
      – Daniele
      Jun 14 '17 at 15:20




      what is the exact syntax to install apt-get ? brew install apt-get gives "Error: No available formula with the name "apt-get"
      – Daniele
      Jun 14 '17 at 15:20












      up vote
      8
      down vote













      You need to install either Homebrew or YUM. I recommend using HomeBrew. To install it enter the following command in terminal.



      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 


      then use brew install Package_name






      share|improve this answer



















      • 1




        Does ruby come pre-installed with each OSX?
        – Anthon
        Apr 3 '15 at 14:07










      • @Anthon: Yes, for several years now.
        – cdunn2001
        May 15 '15 at 8:23










      • Thanks for including the command line download for HomeBrew. Beautiful.
        – shiri
        Oct 9 '17 at 9:05















      up vote
      8
      down vote













      You need to install either Homebrew or YUM. I recommend using HomeBrew. To install it enter the following command in terminal.



      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 


      then use brew install Package_name






      share|improve this answer



















      • 1




        Does ruby come pre-installed with each OSX?
        – Anthon
        Apr 3 '15 at 14:07










      • @Anthon: Yes, for several years now.
        – cdunn2001
        May 15 '15 at 8:23










      • Thanks for including the command line download for HomeBrew. Beautiful.
        – shiri
        Oct 9 '17 at 9:05













      up vote
      8
      down vote










      up vote
      8
      down vote









      You need to install either Homebrew or YUM. I recommend using HomeBrew. To install it enter the following command in terminal.



      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 


      then use brew install Package_name






      share|improve this answer














      You need to install either Homebrew or YUM. I recommend using HomeBrew. To install it enter the following command in terminal.



      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 


      then use brew install Package_name







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 3 '15 at 14:06









      Anthon

      59.9k17102163




      59.9k17102163










      answered Apr 3 '15 at 13:37









      Wassim Seifeddine

      18613




      18613








      • 1




        Does ruby come pre-installed with each OSX?
        – Anthon
        Apr 3 '15 at 14:07










      • @Anthon: Yes, for several years now.
        – cdunn2001
        May 15 '15 at 8:23










      • Thanks for including the command line download for HomeBrew. Beautiful.
        – shiri
        Oct 9 '17 at 9:05














      • 1




        Does ruby come pre-installed with each OSX?
        – Anthon
        Apr 3 '15 at 14:07










      • @Anthon: Yes, for several years now.
        – cdunn2001
        May 15 '15 at 8:23










      • Thanks for including the command line download for HomeBrew. Beautiful.
        – shiri
        Oct 9 '17 at 9:05








      1




      1




      Does ruby come pre-installed with each OSX?
      – Anthon
      Apr 3 '15 at 14:07




      Does ruby come pre-installed with each OSX?
      – Anthon
      Apr 3 '15 at 14:07












      @Anthon: Yes, for several years now.
      – cdunn2001
      May 15 '15 at 8:23




      @Anthon: Yes, for several years now.
      – cdunn2001
      May 15 '15 at 8:23












      Thanks for including the command line download for HomeBrew. Beautiful.
      – shiri
      Oct 9 '17 at 9:05




      Thanks for including the command line download for HomeBrew. Beautiful.
      – shiri
      Oct 9 '17 at 9:05










      up vote
      6
      down vote













      It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version).
      Homebrew, to me is the best package manager...






      share|improve this answer

























        up vote
        6
        down vote













        It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version).
        Homebrew, to me is the best package manager...






        share|improve this answer























          up vote
          6
          down vote










          up vote
          6
          down vote









          It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version).
          Homebrew, to me is the best package manager...






          share|improve this answer












          It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version).
          Homebrew, to me is the best package manager...







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 28 '13 at 0:51









          Dr. Abhishek Ghosh

          6112




          6112






















              up vote
              0
              down vote













              These are some other way



              visit https://sdkman.io/



              # you can use sdk install command to install software
              $ sdk install package_name


              examples:



              MacdeMacBook-Pro$ sdk install java 8.0.191-oracle

              Oracle requires that you agree with the Oracle Binary Code License Agreement
              prior to installation. The license agreement can be found at:

              http://www.oracle.com/technetwork/java/javase/terms/license/index.html

              Do you agree to the terms of this agreement? (Y/n): Y

              Downloading: java 8.0.191-oracle

              In progress...
              ########################## 100.0%
              We will be needing super powers...
              Password:

              Repackaging Java 8u191...
              Attaching to the DMG...
              Mounting DMG as Volume...
              Volume(s) mounted successfully
              Installing PKG inside DMG...
              installer: Package name is JDK 8 Update 191
              installer: Installing at base path /
              installer: The install was successful.
              Copy JDK Home to temp folder...
              Preparing archive...
              Unmounting volume...
              "/Volumes/JDK 8 Update 191" unmounted successfully.
              Done repackaging...
              Cleaning up cookie...

              Installing: java 8.0.191-oracle
              Done installing!

              Setting java 8.0.191-oracle as default.
              MacdeMacBook-Pro:Homebrew mac$ java -version
              java version "1.8.0_191"
              Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
              Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)





              share|improve this answer



























                up vote
                0
                down vote













                These are some other way



                visit https://sdkman.io/



                # you can use sdk install command to install software
                $ sdk install package_name


                examples:



                MacdeMacBook-Pro$ sdk install java 8.0.191-oracle

                Oracle requires that you agree with the Oracle Binary Code License Agreement
                prior to installation. The license agreement can be found at:

                http://www.oracle.com/technetwork/java/javase/terms/license/index.html

                Do you agree to the terms of this agreement? (Y/n): Y

                Downloading: java 8.0.191-oracle

                In progress...
                ########################## 100.0%
                We will be needing super powers...
                Password:

                Repackaging Java 8u191...
                Attaching to the DMG...
                Mounting DMG as Volume...
                Volume(s) mounted successfully
                Installing PKG inside DMG...
                installer: Package name is JDK 8 Update 191
                installer: Installing at base path /
                installer: The install was successful.
                Copy JDK Home to temp folder...
                Preparing archive...
                Unmounting volume...
                "/Volumes/JDK 8 Update 191" unmounted successfully.
                Done repackaging...
                Cleaning up cookie...

                Installing: java 8.0.191-oracle
                Done installing!

                Setting java 8.0.191-oracle as default.
                MacdeMacBook-Pro:Homebrew mac$ java -version
                java version "1.8.0_191"
                Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
                Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)





                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  These are some other way



                  visit https://sdkman.io/



                  # you can use sdk install command to install software
                  $ sdk install package_name


                  examples:



                  MacdeMacBook-Pro$ sdk install java 8.0.191-oracle

                  Oracle requires that you agree with the Oracle Binary Code License Agreement
                  prior to installation. The license agreement can be found at:

                  http://www.oracle.com/technetwork/java/javase/terms/license/index.html

                  Do you agree to the terms of this agreement? (Y/n): Y

                  Downloading: java 8.0.191-oracle

                  In progress...
                  ########################## 100.0%
                  We will be needing super powers...
                  Password:

                  Repackaging Java 8u191...
                  Attaching to the DMG...
                  Mounting DMG as Volume...
                  Volume(s) mounted successfully
                  Installing PKG inside DMG...
                  installer: Package name is JDK 8 Update 191
                  installer: Installing at base path /
                  installer: The install was successful.
                  Copy JDK Home to temp folder...
                  Preparing archive...
                  Unmounting volume...
                  "/Volumes/JDK 8 Update 191" unmounted successfully.
                  Done repackaging...
                  Cleaning up cookie...

                  Installing: java 8.0.191-oracle
                  Done installing!

                  Setting java 8.0.191-oracle as default.
                  MacdeMacBook-Pro:Homebrew mac$ java -version
                  java version "1.8.0_191"
                  Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
                  Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)





                  share|improve this answer














                  These are some other way



                  visit https://sdkman.io/



                  # you can use sdk install command to install software
                  $ sdk install package_name


                  examples:



                  MacdeMacBook-Pro$ sdk install java 8.0.191-oracle

                  Oracle requires that you agree with the Oracle Binary Code License Agreement
                  prior to installation. The license agreement can be found at:

                  http://www.oracle.com/technetwork/java/javase/terms/license/index.html

                  Do you agree to the terms of this agreement? (Y/n): Y

                  Downloading: java 8.0.191-oracle

                  In progress...
                  ########################## 100.0%
                  We will be needing super powers...
                  Password:

                  Repackaging Java 8u191...
                  Attaching to the DMG...
                  Mounting DMG as Volume...
                  Volume(s) mounted successfully
                  Installing PKG inside DMG...
                  installer: Package name is JDK 8 Update 191
                  installer: Installing at base path /
                  installer: The install was successful.
                  Copy JDK Home to temp folder...
                  Preparing archive...
                  Unmounting volume...
                  "/Volumes/JDK 8 Update 191" unmounted successfully.
                  Done repackaging...
                  Cleaning up cookie...

                  Installing: java 8.0.191-oracle
                  Done installing!

                  Setting java 8.0.191-oracle as default.
                  MacdeMacBook-Pro:Homebrew mac$ java -version
                  java version "1.8.0_191"
                  Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
                  Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 29 at 9:52









                  Mr Shunz

                  2,99311822




                  2,99311822










                  answered Nov 29 at 9:33









                  miazzy

                  11




                  11






















                      up vote
                      -1
                      down vote













                      install pkg



                      $ sdk install or i [version]



                      uninstall pkg



                      $ sdk uninstall or rm



                      list avaliable pkg



                      $ sdk list or ls [candidate]
                      #
                      $ sdk use or u [version]
                      $ sdk default or d [version]
                      $ sdk current or c [candidate]
                      $ sdk upgrade or ug [candidate]



                      show current version of sdk manager



                      $ sdk version or v
                      $ sdk broadcast or b
                      $ sdk help or h
                      $ sdk offline [enable|disable]
                      $ sdk selfupdate [force]
                      $ sdk update
                      $ sdk flush






                      share|improve this answer





















                      • This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
                        – TooTea
                        Nov 29 at 10:23















                      up vote
                      -1
                      down vote













                      install pkg



                      $ sdk install or i [version]



                      uninstall pkg



                      $ sdk uninstall or rm



                      list avaliable pkg



                      $ sdk list or ls [candidate]
                      #
                      $ sdk use or u [version]
                      $ sdk default or d [version]
                      $ sdk current or c [candidate]
                      $ sdk upgrade or ug [candidate]



                      show current version of sdk manager



                      $ sdk version or v
                      $ sdk broadcast or b
                      $ sdk help or h
                      $ sdk offline [enable|disable]
                      $ sdk selfupdate [force]
                      $ sdk update
                      $ sdk flush






                      share|improve this answer





















                      • This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
                        – TooTea
                        Nov 29 at 10:23













                      up vote
                      -1
                      down vote










                      up vote
                      -1
                      down vote









                      install pkg



                      $ sdk install or i [version]



                      uninstall pkg



                      $ sdk uninstall or rm



                      list avaliable pkg



                      $ sdk list or ls [candidate]
                      #
                      $ sdk use or u [version]
                      $ sdk default or d [version]
                      $ sdk current or c [candidate]
                      $ sdk upgrade or ug [candidate]



                      show current version of sdk manager



                      $ sdk version or v
                      $ sdk broadcast or b
                      $ sdk help or h
                      $ sdk offline [enable|disable]
                      $ sdk selfupdate [force]
                      $ sdk update
                      $ sdk flush






                      share|improve this answer












                      install pkg



                      $ sdk install or i [version]



                      uninstall pkg



                      $ sdk uninstall or rm



                      list avaliable pkg



                      $ sdk list or ls [candidate]
                      #
                      $ sdk use or u [version]
                      $ sdk default or d [version]
                      $ sdk current or c [candidate]
                      $ sdk upgrade or ug [candidate]



                      show current version of sdk manager



                      $ sdk version or v
                      $ sdk broadcast or b
                      $ sdk help or h
                      $ sdk offline [enable|disable]
                      $ sdk selfupdate [force]
                      $ sdk update
                      $ sdk flush







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 29 at 9:50









                      miazzy

                      11




                      11












                      • This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
                        – TooTea
                        Nov 29 at 10:23


















                      • This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
                        – TooTea
                        Nov 29 at 10:23
















                      This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
                      – TooTea
                      Nov 29 at 10:23




                      This doesn't answer the question at all. The question is specifically about getting APT or YUM working on OS X, not about the general usage of sdk.
                      – TooTea
                      Nov 29 at 10:23


















                      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%2f80711%2fhow-to-install-apt-get-or-yum-on-mac-os-x%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