Opt

The /opt folder stores optional third-party software and shared command-line tools installed outside Apple’s standard system locations.

What is Opt?

The /opt folder is a standard Unix-style location for optional software installed by users, developers, or package managers. On macOS, it is commonly used for command-line tools, development environments, shared runtimes, and vendor-managed components that do not belong in Apple’s built-in system folders. Many users encounter /opt after installing developer tools, package managers, database servers, language runtimes, or security and networking utilities. Its contents can include executable programs, libraries, configuration files, and support data that other apps or shell commands depend on. Because /opt is a shared location, one folder inside it may belong to a single product while another may be used by a completely different tool. Users usually interact with it indirectly through Terminal commands, local services, or software that adds tools to the shell PATH.

Review files before deleting with diCleaner

Inspect caches, support files, folders, and related data before deleting items on Mac.

Download diCleaner

Safety overview

Status: Use with caution

Files in /opt are often active components used by package managers, developer tools, local servers, VPN clients, and other utilities. Deleting the whole folder can break Terminal commands, scripts, development workflows, or background services that rely on software installed there. /opt is not an Apple user-cache location, so its contents should be checked folder by folder before removing anything.

Recommendation: Keep /opt unless you are intentionally uninstalling specific software stored inside it. If you need to free space, inspect the subfolders, identify which app or tool owns each one, and remove only items that belong to software you no longer use. Deleting the entire folder at once can cause command-line tools and related services to stop working.

File path

  • /opt

Share your experience

Be the first to share your experience.

Share your experience with this file or folder