Is xar preinstalled on macOS?












6















$ which xar
/usr/bin/xar


It's in /usr/bin. Does that mean it's preinstalled on mac?










share|improve this question



























    6















    $ which xar
    /usr/bin/xar


    It's in /usr/bin. Does that mean it's preinstalled on mac?










    share|improve this question

























      6












      6








      6








      $ which xar
      /usr/bin/xar


      It's in /usr/bin. Does that mean it's preinstalled on mac?










      share|improve this question














      $ which xar
      /usr/bin/xar


      It's in /usr/bin. Does that mean it's preinstalled on mac?







      mac command-line archive archive-utility






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 19 hours ago









      johanjohan

      557




      557






















          2 Answers
          2






          active

          oldest

          votes


















          13














          Unless you've disabled SIP and installed your own binaries in /usr/bin it's safe to assume that everything in /usr/bin (and /bin, /sbin, /usr/sbin) is pre-installed.






          share|improve this answer































            7














            One indication you might look for is found at https://opensource.apple.com/release/macos-10141.html where you see that xar-404 is indeed used by Apple.



            To get a closer look at what is installed, you might use onboard tools check for some parameters:



            $  codesign -vd --verbose=4 /usr/bin/xar

            Executable=/usr/bin/xar
            Identifier=com.apple.xar
            Format=Mach-O thin (x86_64)
            CodeDirectory v=20100 size=350 flags=0x0(none) hashes=7+2 location=embedded
            Platform identifier=2
            OSPlatform=36
            OSSDKVersion=658432
            OSVersionMin=658432
            Hash type=sha256 size=32
            CandidateCDHash sha256=6dd0100231ae53fb666827d9212b487d17fa6163
            Hash choices=sha256
            Page size=4096
            CDHash=6dd0100231ae53fb666827d9212b487d17fa6163
            Signature size=4105
            Authority=Software Signing
            Authority=Apple Code Signing Certification Authority
            Authority=Apple Root CA
            Info.plist=not bound
            TeamIdentifier=not set
            Sealed Resources=none
            Internal requirements count=1 size=64


            As Apple doesn't offer tools like that in seperate installers or packages, the conclusion from the output above would be that it came pre-installed.



            Alternatively, get the full installer ("Install macOS Mojave.app"), show package contents, navigate Contents/SharedSupport/InstallESD.dmg and mount that, then navigate to /Volumes/InstallESD/Packages/Core.pkg and open that
            in eg Pacifist. There as well you can navigate to /usr/bin/xar .






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "118"
              };
              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: 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%2fapple.stackexchange.com%2fquestions%2f354143%2fis-xar-preinstalled-on-macos%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









              13














              Unless you've disabled SIP and installed your own binaries in /usr/bin it's safe to assume that everything in /usr/bin (and /bin, /sbin, /usr/sbin) is pre-installed.






              share|improve this answer




























                13














                Unless you've disabled SIP and installed your own binaries in /usr/bin it's safe to assume that everything in /usr/bin (and /bin, /sbin, /usr/sbin) is pre-installed.






                share|improve this answer


























                  13












                  13








                  13







                  Unless you've disabled SIP and installed your own binaries in /usr/bin it's safe to assume that everything in /usr/bin (and /bin, /sbin, /usr/sbin) is pre-installed.






                  share|improve this answer













                  Unless you've disabled SIP and installed your own binaries in /usr/bin it's safe to assume that everything in /usr/bin (and /bin, /sbin, /usr/sbin) is pre-installed.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 19 hours ago









                  nohillsidenohillside

                  52.8k13112156




                  52.8k13112156

























                      7














                      One indication you might look for is found at https://opensource.apple.com/release/macos-10141.html where you see that xar-404 is indeed used by Apple.



                      To get a closer look at what is installed, you might use onboard tools check for some parameters:



                      $  codesign -vd --verbose=4 /usr/bin/xar

                      Executable=/usr/bin/xar
                      Identifier=com.apple.xar
                      Format=Mach-O thin (x86_64)
                      CodeDirectory v=20100 size=350 flags=0x0(none) hashes=7+2 location=embedded
                      Platform identifier=2
                      OSPlatform=36
                      OSSDKVersion=658432
                      OSVersionMin=658432
                      Hash type=sha256 size=32
                      CandidateCDHash sha256=6dd0100231ae53fb666827d9212b487d17fa6163
                      Hash choices=sha256
                      Page size=4096
                      CDHash=6dd0100231ae53fb666827d9212b487d17fa6163
                      Signature size=4105
                      Authority=Software Signing
                      Authority=Apple Code Signing Certification Authority
                      Authority=Apple Root CA
                      Info.plist=not bound
                      TeamIdentifier=not set
                      Sealed Resources=none
                      Internal requirements count=1 size=64


                      As Apple doesn't offer tools like that in seperate installers or packages, the conclusion from the output above would be that it came pre-installed.



                      Alternatively, get the full installer ("Install macOS Mojave.app"), show package contents, navigate Contents/SharedSupport/InstallESD.dmg and mount that, then navigate to /Volumes/InstallESD/Packages/Core.pkg and open that
                      in eg Pacifist. There as well you can navigate to /usr/bin/xar .






                      share|improve this answer






























                        7














                        One indication you might look for is found at https://opensource.apple.com/release/macos-10141.html where you see that xar-404 is indeed used by Apple.



                        To get a closer look at what is installed, you might use onboard tools check for some parameters:



                        $  codesign -vd --verbose=4 /usr/bin/xar

                        Executable=/usr/bin/xar
                        Identifier=com.apple.xar
                        Format=Mach-O thin (x86_64)
                        CodeDirectory v=20100 size=350 flags=0x0(none) hashes=7+2 location=embedded
                        Platform identifier=2
                        OSPlatform=36
                        OSSDKVersion=658432
                        OSVersionMin=658432
                        Hash type=sha256 size=32
                        CandidateCDHash sha256=6dd0100231ae53fb666827d9212b487d17fa6163
                        Hash choices=sha256
                        Page size=4096
                        CDHash=6dd0100231ae53fb666827d9212b487d17fa6163
                        Signature size=4105
                        Authority=Software Signing
                        Authority=Apple Code Signing Certification Authority
                        Authority=Apple Root CA
                        Info.plist=not bound
                        TeamIdentifier=not set
                        Sealed Resources=none
                        Internal requirements count=1 size=64


                        As Apple doesn't offer tools like that in seperate installers or packages, the conclusion from the output above would be that it came pre-installed.



                        Alternatively, get the full installer ("Install macOS Mojave.app"), show package contents, navigate Contents/SharedSupport/InstallESD.dmg and mount that, then navigate to /Volumes/InstallESD/Packages/Core.pkg and open that
                        in eg Pacifist. There as well you can navigate to /usr/bin/xar .






                        share|improve this answer




























                          7












                          7








                          7







                          One indication you might look for is found at https://opensource.apple.com/release/macos-10141.html where you see that xar-404 is indeed used by Apple.



                          To get a closer look at what is installed, you might use onboard tools check for some parameters:



                          $  codesign -vd --verbose=4 /usr/bin/xar

                          Executable=/usr/bin/xar
                          Identifier=com.apple.xar
                          Format=Mach-O thin (x86_64)
                          CodeDirectory v=20100 size=350 flags=0x0(none) hashes=7+2 location=embedded
                          Platform identifier=2
                          OSPlatform=36
                          OSSDKVersion=658432
                          OSVersionMin=658432
                          Hash type=sha256 size=32
                          CandidateCDHash sha256=6dd0100231ae53fb666827d9212b487d17fa6163
                          Hash choices=sha256
                          Page size=4096
                          CDHash=6dd0100231ae53fb666827d9212b487d17fa6163
                          Signature size=4105
                          Authority=Software Signing
                          Authority=Apple Code Signing Certification Authority
                          Authority=Apple Root CA
                          Info.plist=not bound
                          TeamIdentifier=not set
                          Sealed Resources=none
                          Internal requirements count=1 size=64


                          As Apple doesn't offer tools like that in seperate installers or packages, the conclusion from the output above would be that it came pre-installed.



                          Alternatively, get the full installer ("Install macOS Mojave.app"), show package contents, navigate Contents/SharedSupport/InstallESD.dmg and mount that, then navigate to /Volumes/InstallESD/Packages/Core.pkg and open that
                          in eg Pacifist. There as well you can navigate to /usr/bin/xar .






                          share|improve this answer















                          One indication you might look for is found at https://opensource.apple.com/release/macos-10141.html where you see that xar-404 is indeed used by Apple.



                          To get a closer look at what is installed, you might use onboard tools check for some parameters:



                          $  codesign -vd --verbose=4 /usr/bin/xar

                          Executable=/usr/bin/xar
                          Identifier=com.apple.xar
                          Format=Mach-O thin (x86_64)
                          CodeDirectory v=20100 size=350 flags=0x0(none) hashes=7+2 location=embedded
                          Platform identifier=2
                          OSPlatform=36
                          OSSDKVersion=658432
                          OSVersionMin=658432
                          Hash type=sha256 size=32
                          CandidateCDHash sha256=6dd0100231ae53fb666827d9212b487d17fa6163
                          Hash choices=sha256
                          Page size=4096
                          CDHash=6dd0100231ae53fb666827d9212b487d17fa6163
                          Signature size=4105
                          Authority=Software Signing
                          Authority=Apple Code Signing Certification Authority
                          Authority=Apple Root CA
                          Info.plist=not bound
                          TeamIdentifier=not set
                          Sealed Resources=none
                          Internal requirements count=1 size=64


                          As Apple doesn't offer tools like that in seperate installers or packages, the conclusion from the output above would be that it came pre-installed.



                          Alternatively, get the full installer ("Install macOS Mojave.app"), show package contents, navigate Contents/SharedSupport/InstallESD.dmg and mount that, then navigate to /Volumes/InstallESD/Packages/Core.pkg and open that
                          in eg Pacifist. There as well you can navigate to /usr/bin/xar .







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 16 hours ago

























                          answered 17 hours ago









                          LangLangCLangLangC

                          4,56431858




                          4,56431858






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Different!


                              • 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%2fapple.stackexchange.com%2fquestions%2f354143%2fis-xar-preinstalled-on-macos%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

                              How did Captain America manage to do this?

                              迪纳利

                              南乌拉尔铁路局