# How to clean up kexts when updating a Hackintosh to Catalina

Canonical: https://kextcache.com/how-you-can-clean-up-kexts-mess-when-updating-to-catalina/

To clean up kexts after updating a Clover Hackintosh to macOS Catalina, delete the third-party kexts in /Library/Extensions, rebuild the kext cache in Terminal, and from then on keep your kexts in **EFI/CLOVER/kexts/Other** on the EFI partition. The steps below are from April 2020 and assume Clover. On OpenCore, kexts go in EFI/OC/Kexts instead ([Dortania's OpenCore guide](https://dortania.github.io/OpenCore-Install-Guide/ktext.html)), and our post on [what kexts are](/what-are-kexts-in-macos-or-hackintoshes/) covers the config.plist side. If you're new to this, start with [what a Hackintosh is](/what-exactly-is-hackintosh-in-general/).

With Catalina, our advice on where to install third-party kexts changes. The default location moves from /Library/Extensions to **/Volumes/EFI/EFI/CLOVER/kexts/Other**.

The steps are for a Hackintosh moving from macOS Mojave to Catalina with its Mojave kexts still installed.

Read Also: [Common Problems and Workarounds in Hackintosh](/common-problems-and-workarounds-in-hackintosh-2020/)

## Remove old kexts and rebuild the cache

1. Update to [macOS Catalina](https://support.apple.com/en-us/102662) with our [update guide](/update-your-hackintosh/).
2. Install all your post-installation tools.
3. Go to **/Library/Extensions**.
4. Delete any third-party kexts there.
5. Open **/Applications/Utilities/Terminal**.
6. Enter `sudo -s` and type your password.
7. Enter `mount -uw /`
8. Enter `touch /Library/Extensions /System/Library/Extensions`
9. Enter `kextcache -i /`
10. Restart.

## Copy your kexts to the EFI partition

Copy the kexts you need to **/Volumes/EFI/EFI/CLOVER/kexts/Other** and restart. You should be good to go.
