Is xar preinstalled on macOS? [duplicate]Command line tools available by defaultIs there a command-line BitTorrent client preinstalled on OS X?/usr/bin/codesign from Mac 10.9Extract jpeg FileUnknown error message in TerminalTerminal: command overridden via shell script in /usr/local/bin not executed unless called directlycurl not working in El CapitanTerminal Crash on Macbook Air 2011, MavericksErased /usr/local/bin directory by mistakeTerminal Startup command not foundDoes macOS Mojave comes with java pre-installed?
Why does the Persian emissary display a string of crowned skulls?
What is this high flying aircraft over Pennsylvania?
Can you identify this lizard-like creature I observed in the UK?
Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?
Would this string work as string?
What should be the ideal length of sentences in a blog post for ease of reading?
Do you waste sorcery points if you try to apply metamagic to a spell from a scroll but fail to cast it?
Language involving irrational number is not a CFL
How do I Interface a PS/2 Keyboard without Modern Techniques?
Why is the Sun approximated as a black body at ~ 5800 K?
Usage of an old photo with expired copyright
"Oh no!" in Latin
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
When is "ei" a diphthong?
El Dorado Word Puzzle II: Videogame Edition
How many people need to be born every 8 years to sustain population?
Pre-employment background check with consent for future checks
Is there any way I can have two passwords for my wi-fi
Why the "ls" command is showing the permissions of files in a FAT32 partition?
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
Isolating an audio line connection with two capacitors
What the heck is gets(stdin) on site coderbyte?
Using streams for a null-safe conversion from an array to list
Anime with legendary swords made from talismans and a man who could change them with a shattered body
Is xar preinstalled on macOS? [duplicate]
Command line tools available by defaultIs there a command-line BitTorrent client preinstalled on OS X?/usr/bin/codesign from Mac 10.9Extract jpeg FileUnknown error message in TerminalTerminal: command overridden via shell script in /usr/local/bin not executed unless called directlycurl not working in El CapitanTerminal Crash on Macbook Air 2011, MavericksErased /usr/local/bin directory by mistakeTerminal Startup command not foundDoes macOS Mojave comes with java pre-installed?
This question already has an answer here:
Command line tools available by default
3 answers
$ which xar
/usr/bin/xar
It's in /usr/bin
. Does that mean it's preinstalled on mac?
mac command-line archive archive-utility
marked as duplicate by nohillside♦ yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Command line tools available by default
3 answers
$ which xar
/usr/bin/xar
It's in /usr/bin
. Does that mean it's preinstalled on mac?
mac command-line archive archive-utility
marked as duplicate by nohillside♦ yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Related (duplicate?) Command line tools available by default
– Martin R
yesterday
@MartinR Good find. The answers there might need a refresh for Mojave though
– nohillside♦
yesterday
I voted to reopen this because the best answer ( @Martin R ) is different than the other question.
– fd0
yesterday
1
@fd0 There is nothing in the question which indicates that the answers on the main questions don't apply, so I doubt there is a reason to reopen.
– nohillside♦
yesterday
add a comment |
This question already has an answer here:
Command line tools available by default
3 answers
$ which xar
/usr/bin/xar
It's in /usr/bin
. Does that mean it's preinstalled on mac?
mac command-line archive archive-utility
This question already has an answer here:
Command line tools available by default
3 answers
$ which xar
/usr/bin/xar
It's in /usr/bin
. Does that mean it's preinstalled on mac?
This question already has an answer here:
Command line tools available by default
3 answers
mac command-line archive archive-utility
mac command-line archive archive-utility
asked Mar 18 at 7:40
johanjohan
658
658
marked as duplicate by nohillside♦ yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by nohillside♦ yesterday
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Related (duplicate?) Command line tools available by default
– Martin R
yesterday
@MartinR Good find. The answers there might need a refresh for Mojave though
– nohillside♦
yesterday
I voted to reopen this because the best answer ( @Martin R ) is different than the other question.
– fd0
yesterday
1
@fd0 There is nothing in the question which indicates that the answers on the main questions don't apply, so I doubt there is a reason to reopen.
– nohillside♦
yesterday
add a comment |
1
Related (duplicate?) Command line tools available by default
– Martin R
yesterday
@MartinR Good find. The answers there might need a refresh for Mojave though
– nohillside♦
yesterday
I voted to reopen this because the best answer ( @Martin R ) is different than the other question.
– fd0
yesterday
1
@fd0 There is nothing in the question which indicates that the answers on the main questions don't apply, so I doubt there is a reason to reopen.
– nohillside♦
yesterday
1
1
Related (duplicate?) Command line tools available by default
– Martin R
yesterday
Related (duplicate?) Command line tools available by default
– Martin R
yesterday
@MartinR Good find. The answers there might need a refresh for Mojave though
– nohillside♦
yesterday
@MartinR Good find. The answers there might need a refresh for Mojave though
– nohillside♦
yesterday
I voted to reopen this because the best answer ( @Martin R ) is different than the other question.
– fd0
yesterday
I voted to reopen this because the best answer ( @Martin R ) is different than the other question.
– fd0
yesterday
1
1
@fd0 There is nothing in the question which indicates that the answers on the main questions don't apply, so I doubt there is a reason to reopen.
– nohillside♦
yesterday
@fd0 There is nothing in the question which indicates that the answers on the main questions don't apply, so I doubt there is a reason to reopen.
– nohillside♦
yesterday
add a comment |
3 Answers
3
active
oldest
votes
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.
1
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file/usr/bin/swift
which (I assume) was installed with Xcode.
– Martin R
yesterday
add a comment |
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 .
add a comment |
You can use pkgutil
to determine by which installer a file was installed:
$ pkgutil -v --file-info /usr/bin/xar
volume: /
path: /usr/bin/xar
pkgid: com.apple.pkg.update.os.10.14.2.18C54
pkg-version: 1.0.0.0.1.1543558197
install-time: Thu Dec 6 11:31:26 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.update.os.10.14.1.18B75
pkg-version: 1.0.0.0.1.1540375237
install-time: Wed Nov 7 10:05:39 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.Core
pkg-version: 10.14.0.1.1.1537503053
install-time: Tue Sep 25 10:43:44 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
shows that xar
was installed with an Apple “Core” package (and updated twice).
New contributor
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
1
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file/usr/bin/swift
which (I assume) was installed with Xcode.
– Martin R
yesterday
add a comment |
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.
1
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file/usr/bin/swift
which (I assume) was installed with Xcode.
– Martin R
yesterday
add a comment |
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.
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.
answered Mar 18 at 7:53
nohillside♦nohillside
52.8k13112156
52.8k13112156
1
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file/usr/bin/swift
which (I assume) was installed with Xcode.
– Martin R
yesterday
add a comment |
1
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file/usr/bin/swift
which (I assume) was installed with Xcode.
– Martin R
yesterday
1
1
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file
/usr/bin/swift
which (I assume) was installed with Xcode.– Martin R
yesterday
That doesn't necessarily mean that the binaries are preinstalled with macOS. As an example, I have a file
/usr/bin/swift
which (I assume) was installed with Xcode.– Martin R
yesterday
add a comment |
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 .
add a comment |
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 .
add a comment |
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 .
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 .
edited 2 days ago
answered 2 days ago
LangLangCLangLangC
4,63431860
4,63431860
add a comment |
add a comment |
You can use pkgutil
to determine by which installer a file was installed:
$ pkgutil -v --file-info /usr/bin/xar
volume: /
path: /usr/bin/xar
pkgid: com.apple.pkg.update.os.10.14.2.18C54
pkg-version: 1.0.0.0.1.1543558197
install-time: Thu Dec 6 11:31:26 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.update.os.10.14.1.18B75
pkg-version: 1.0.0.0.1.1540375237
install-time: Wed Nov 7 10:05:39 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.Core
pkg-version: 10.14.0.1.1.1537503053
install-time: Tue Sep 25 10:43:44 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
shows that xar
was installed with an Apple “Core” package (and updated twice).
New contributor
add a comment |
You can use pkgutil
to determine by which installer a file was installed:
$ pkgutil -v --file-info /usr/bin/xar
volume: /
path: /usr/bin/xar
pkgid: com.apple.pkg.update.os.10.14.2.18C54
pkg-version: 1.0.0.0.1.1543558197
install-time: Thu Dec 6 11:31:26 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.update.os.10.14.1.18B75
pkg-version: 1.0.0.0.1.1540375237
install-time: Wed Nov 7 10:05:39 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.Core
pkg-version: 10.14.0.1.1.1537503053
install-time: Tue Sep 25 10:43:44 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
shows that xar
was installed with an Apple “Core” package (and updated twice).
New contributor
add a comment |
You can use pkgutil
to determine by which installer a file was installed:
$ pkgutil -v --file-info /usr/bin/xar
volume: /
path: /usr/bin/xar
pkgid: com.apple.pkg.update.os.10.14.2.18C54
pkg-version: 1.0.0.0.1.1543558197
install-time: Thu Dec 6 11:31:26 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.update.os.10.14.1.18B75
pkg-version: 1.0.0.0.1.1540375237
install-time: Wed Nov 7 10:05:39 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.Core
pkg-version: 10.14.0.1.1.1537503053
install-time: Tue Sep 25 10:43:44 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
shows that xar
was installed with an Apple “Core” package (and updated twice).
New contributor
You can use pkgutil
to determine by which installer a file was installed:
$ pkgutil -v --file-info /usr/bin/xar
volume: /
path: /usr/bin/xar
pkgid: com.apple.pkg.update.os.10.14.2.18C54
pkg-version: 1.0.0.0.1.1543558197
install-time: Thu Dec 6 11:31:26 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.update.os.10.14.1.18B75
pkg-version: 1.0.0.0.1.1540375237
install-time: Wed Nov 7 10:05:39 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
pkgid: com.apple.pkg.Core
pkg-version: 10.14.0.1.1.1537503053
install-time: Tue Sep 25 10:43:44 2018
uid: 0 (root)
gid: 0 (wheel)
mode: 755 (?rwxr-xr-x )
shows that xar
was installed with an Apple “Core” package (and updated twice).
New contributor
New contributor
answered yesterday
Martin RMartin R
1713
1713
New contributor
New contributor
add a comment |
add a comment |
1
Related (duplicate?) Command line tools available by default
– Martin R
yesterday
@MartinR Good find. The answers there might need a refresh for Mojave though
– nohillside♦
yesterday
I voted to reopen this because the best answer ( @Martin R ) is different than the other question.
– fd0
yesterday
1
@fd0 There is nothing in the question which indicates that the answers on the main questions don't apply, so I doubt there is a reason to reopen.
– nohillside♦
yesterday