Installing Notarized Oracle Instant Client Software PKG Files
Perform the following steps for installing or uninstalling Oracle Instant Client for Apple macOS (ARM64) using PKG files. All installations require a Basic or Basic Light package. All other packages are optional.
Download the desired Oracle Instant Client PKG files for Apple macOS (ARM64) from the Oracle Instant Client Downloads page in a
rootaccessible directory:
https://www.oracle.com/database/technologies/instant-client/downloads.htmlNote: Use the
staplerutility to check if the PKG files are notarized.For example:
$ /usr/bin/xcrun stapler validate <path-to-instantclient-basic-macos.arm64-23.26.3.0.0.pkg>The output is similar to the following:
Processing: instantclient-basic-macos.arm64-23.26.3.0.0.pkg The validate action worked!Use the
installerutility to install the downloaded PKGs. Theinstallerutility creates the/Applications/Oracle_Instant_Client_23_26_xdirectory and installs the PKGs in this newly created directory:
For example:$ sudo /usr/sbin/installer -pkg <path-to-instantclient-basic-macos.arm64-23.26.3.0.0.pkg> -target /Verify that the desired packages are installed successfully:
$ /usr/sbin/pkgutil --pkgs | grep -i instantclient com.oracle.us.pkg.instantclient.basic.macos.arm64
Removing the Oracle Instant Client Software PKG Files
To remove the Oracle Instant Client software, run the
uninstall_oracle_instantclientscript from the/Applications/Oracle_Instant_Client_23_x_xdirectory. This script prompts for therootpassword to remove any symbolic links created in the/usrdirectory during Oracle Instant Client installation.For example:
$ cd /Applications/Oracle_Instant_Client_23_26_3/ $ ./uninstall_oracle_instantclient Try running `launchctl bootout` as root for richer errors. Oracle Instant Client uninstalled successfullyFor each installed PKG package, remove its package receipt from the macOS package database so that macOS no longer recognizes the package as installed:
$ sudo pkgutil --forget com.oracle.us.pkg.instantclient.basic.macos.arm64 Password: Forgot package 'com.oracle.us.pkg.instantclient.basic.macos.arm64' on '/'.