我正在尝试从macOS高塞拉完全卸载Parallels。我从磁盘中删除了除/Library/StagedExtensions/Parallel Desktop.app下存储的一些Parallels扩展模块之外的所有扩展模块
我认为位置与用户批准的扩展有关,但我也想找到一种方法来删除/卸载这些扩展。如果我尝试删除扩展,它会显示尽管拥有root权限,但操作是不允许的。
有什么想法吗?
发布于 2018-11-20 14:33:09
清空StageExtensions文件夹的新方法如下所示
sudo kextcache --clear-staging
此命令将清除/Library/StageExtensions文件夹。我们不需要进入恢复模式并手动删除此文件夹,以防在安装软件时出现某些权限错误。
发布于 2018-07-12 19:05:30
在我的例子中,当您使kext缓存无效时,删除的kext将从StagedExtensions中消失。
sudo rm -rf /Library/Extensions/Parallel\ Desktop.app # check if the name is correct so you don't delete some other kext
sudo kextcache -invalidate /
# now you should not see your deleted kext here
ls /Library/StagedExtensions/
更新2019:
有关详细信息,请参阅手册页:man kextcache
。摘录与-invalidate
相关,简称-i
:
-i os_volume, -invalidate os_volume
Rebuild out-of-date caches and update any helper partitions
associated with os_volume.
This option mimics sudo touch /System/Library/Extensions on
os_volume. If kextcache cannot find or make sense of
os_volume/usr/standalone/bootcaches.plist, the volume is treated
as if no caches need updating: success is returned.
还有一些新的选项:
-clear-staging
Clears the kernel extension staging area by removing all staged content.
-prune-staging
Prunes the kernel extension staging area by removing all kernel extensions
no longer present in their original location.
看起来-prune-staging
只删除了已删除的扩展名,从下一次kext缓存重建中节省了一点时间。
请参阅Mojave手册页的https://www.unix.com/man-page/mojave/8/KEXTCACHE/,其中包含这些新选项。
发布于 2019-12-06 14:15:15
sudo kextcache --clear-staging
曾在文件夹HD/Library/
中
干杯
编辑:格式化
Edit2:我相信Parallels会将一些文件直接写入bootloader/内核。从CMD+R hold restart Disk Utility终端运行该命令后,将从/Library中删除该扩展。
我希望这是有意义的。
https://stackoverflow.com/questions/46535279
复制相似问题