What is /Library/StagedExtensions for and how to remove extensions

sudo kextcache --clear-staging
remove third party kernel extensions
remove system extensions
disable sip
system/library/extensions
bluestacks can t be modified or deleted because its required by macos
how to remove kext
remove kext from recovery terminal

I'm trying to uninstall Parallels completely from macOS High Sierra. I removed everything from the disk except some Parallels extensions that are stored under /Library/StagedExtensions/Parallel Desktop.app

I think the location has to do with user approved extensions, but I'd like to find a way to remove/uninstall those too. If I try to delete the extensions it says operation not permitted despite the root rights.

Any idea?

In my case, deleted kext disappears from StagedExtensions when you invalidate kext cache.

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/

UPDATE 2019:

See man page for full details: man kextcache. Excerpt related to -invalidate, -i for short:

 -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.

There are also new options:

     -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.

Looks like -prune-staging removes only the deleted extensions, shaving little bit of time from the next kext cache rebuild.

See https://www.unix.com/man-page/mojave/8/KEXTCACHE/ for Mojave man page, which contains these new options.

Leftover Malwarebytes file in StagedExtensions folder , /Library/StagedExtensions/com.malwarebytes.mbam.rtprotection.kext It is not necessary to remove the leftover file and we recommend you  With higher security (SIP aka "Rootless") in 10.12-10.13, 3rd party drivers (kext) are placed in this temporary holding place until the user approves the use, at which time the driver is moved to /Library/Extensions.

There is new way to clear the StageExtensions folder as following

sudo kextcache --clear-staging

This command will clear the /Library/StageExtensions folder. We dont need to go to recovery mode and delete manually this folder in case there are some permission errors while installing software.

kernel-extension: What is /Library/StagedExtensions for and how to , What is /Library/StagedExtensions for and how to remove extensions do with user approved extensions, but I'd like to find a way to remove/uninstall those too. What is /Library/StagedExtensions for and how to remove extensions I'm trying to uninstall Parallels completely from macOS High Sierra. I removed everything from the disk except some Parallels extensions that are stored under /Library/StagedExtensions/Parallel Des

The 'app' you can't trash: how SIP is broken in High Sierra – The , Trying to remove it using a conventional Terminal command sudo rm -rf /Library/​StagedExtensions/Applications/BlueStacks.app also fails, with  I have tried connecting to my phone hotspot to remove the router wifi from being an issue. The Apple Wifi diagnostics is not much help. The AP itself is fine (I'm connected wtih several devices including a 10.14 Mac, the issue is something to do with ObjectiveDevelopment Little Snitch and Catalina.

sudo kextcache --clear-staging

Was in folder HD/Library/

Cheers

Edit: Formatting

What's the difference between /Library/Extensions and /Library , I uninstalled virtualbox before approving its kexts and now it seems they're stuck in StagedExtensions. Kinda weird that SIP lists that folder as "restricted" but the  How To Remove/Uninstall KEXTs In Mac OSX KEXTs are Kernel Extensions, and I realised that a program that I installed in the past (SteerMouse) had left its KEXT behind even though I uninstalled the program.

How do I remove unwanted kext folders?, /Library/StagedExtensions/Library/Extensions. that were installed by applications I have otherwise uninstalled but I cannot get rid of these. Basically, since SIP was introduced to macOS, trusted privileged kernels are loaded into /Library/StagedExtensions. On my system I found the following Keybase components (after I ran the key base uninstall):

How to safely delete a folder in `/Library/StagedExtensions/Library , The OS: macOS Catalina. Problem: I want to delete a folder under. /Library/​StagedExtensions/Library/Application Support/. The full path is. I removed everything from the disk except some Parallels extensions that are stored under /Library/StagedExtensions/Parallel Desktop.app. I think the location has to do with user approved extensions, but I'd like to find a way to remove/uninstall those too. If I try to delete the extensions it says operation not permitted despite the root rights.

Cant delete persistent damaged application Bluestack, This will allow you to remove the rest of the app. not only the app itself, but also a kernel extension that is stored in /Library/StagedExtensions. As the developer responsible for that KEXT, I'm sorry that it's crashing. You did the right thing just deleting it; it isn't going to be updated for Mojave (because, frankly, there's no point; what with APFS and the various security changes, I'm afraid iDefrag is now a legacy-only product).

How to identify extensions blocked by Gatekeeper, file:///Library/StagedExtensions/System/Library/Extensions/hp_fax_io.kext/ is in hash Since the kernel extensions wasn't loaded I decided to remove it. sudo rm​ 

Comments
  • have you tried to check if the kernel extension is loaded or in kernel using command kextstat? run this kextstat command and check if you have any of the parallel extension.
  • This only answers half the question, it doesn't explain what this folder is for
  • Well... Only Apple knows why is it called like that, but it's, by the looks of it, used for kexts which are "staged", e.g. are cached, verified and ready for next boot. Kexts are copied there after successful boot - e.g. they are verified and approved/staged for next boot. At least that's what I take from it.
  • For me it did not remove the directory permanently. After the next reboot everything was back.
  • Please give an explanation on how and why your solution works for the question.
  • No, above is not the solution to a problem. Customer wont disable SIP and remove it. I guess this is serious bug from apple
  • I have already reported this to apple but i haven't got any response from them. If they reply, ill let you know guys