The /opt directory is used for installing additional software packages that are not managed by the system's package manager.