Installation Guide

  • 2021.4
  • 09/27/2021
  • Public Content

Install Packages or Components to Different Directories

By default, when you install oneAPI Toolkit or component, the installer saves the installation location to a database. All further installations use the directory stored in the database. Sometimes you do not need this. As an example, you may want to install oneAPI Base Toolkit in one directory and oneAPI HPC Toolkit in a completely different directory.
The installers support using a non-default installation directory during the first installation. This is available with the command line installation methods. However, the installer saves the directory of the initial installation and uses it for further installations. This may prevent you from installing other toolkits in directories other than the first toolkit installation.
You can use a workaround to change the installation directory after the initial installation: you can remove the installer database. Remember though that removing the database will break the product uninstall function. You can use a workaround for removing Toolkits or components after you remove the database: you can uninstall the product manually as shown below.
To remove the history database from the installer, do the following:
  • root installation:
    Go to /var/intel/installercache directory and remove the packagemanager.db database.
  • user (non-root) installation:
    Go to /home/<username>/intel/installercache directory and remove the packagemanager.db database.
Removing the database will now allow a new installation to change the installation directory used by the previous installation. As an example, if you want to install the Base Toolkit in one directory and HPC Toolkit in another:
  • Install oneAPI Base Toolkit in a directory of your choice: for this example, we choose /opt/base directory
  • Before installing oneAPI HPC Toolkit, remove the history saved from the Base Toolkit by deleting file /var/intel/installercache/packagemanager.db
  • Install oneAPI HPC Toolkit in another directory, for example, /opt/hpc directory
Suppose at some point in the future you want to remove the first Base Toolkit. Using the uninstaller, you can still uninstall HPC Toolkit, but you can’t uninstall Base Toolkit this way since its history database was removed. In this case, to uninstall Base Toolkit, remove the /opt/base directory with a command like rm -Rf /opt/base to recursively remove all files under /opt/base.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at