Ricevo un errore di posizione del percorso.
$ pkgutil --forget com.apple.pkg.CLTools_Executables
Unknown error Error Domain=NSCocoaErrorDomain Code=4 "“com.apple.pkg.CLTools_Executables.bom” couldn’t be removed." UserInfo={NSFilePath=/var/db/receipts/com.apple.pkg.CLTools_Executables.bom, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x7fb0cdc0bd70 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}.
Forgot package 'com.apple.pkg.CLTools_Executables' on '/'.
I dati di ricevuta che voglio eliminare sono in /System/Library/Receipts/
.
$ ls /System/Library/Receipts/com.apple.pkg.CLTool*
/System/Library/Receipts/com.apple.pkg.CLTools_Executables.bom
/System/Library/Receipts/com.apple.pkg.CLTools_Executables.plist
/System/Library/Receipts/com.apple.pkg.CLTools_SDK_OSX1012.bom
/System/Library/Receipts/com.apple.pkg.CLTools_SDK_OSX1012.plist
/System/Library/Receipts/com.apple.pkg.CLTools_SDK_macOS1013.bom
/System/Library/Receipts/com.apple.pkg.CLTools_SDK_macOS1013.plist
/System/Library/Receipts/com.apple.pkg.CLTools_SDK_macOSSDK.bom
/System/Library/Receipts/com.apple.pkg.CLTools_SDK_macOSSDK.plist
Perché pkgutil
cerca il file distinta componenti (BOM) in /var/db/receipts/
?
Nota: ho già eliminato la cartella /Library/Developer/CommandLineTools
.
Motivazione: Rimozione di strumenti da riga di comando disinstallati dagli aggiornamenti di AppStore