In JFrog Artifactory, Debian, Opkg, and RPM packages are internally indexed and cache their metadata locally. This cached metadata is located in two default directories:
Debian and Opkg - $JFROG_HOME/artifactory/var/data/.cache/ RPM - $JFROG_HOME/artifactory/var/data/.rpmcache/
Each directory has a hierarchy of repositories of the specific package type containing the indexed metadata. The existence of the folders is necessary for the metadata calculation. More information about the significance of caching this metadata is available here. Note - The more packages there are, the larger these cache directories will be.
Since JFrog Artifactory 7.12.3, the location of these directories can be modified by adding the following system properties to the $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties file:
artifactory.rpm.metadata.cache.folder=path/to/folder artifactory.cache.metadata.folder=path/to/folder
For example:
artifactory.rpm.metadata.cache.folder=/mount/rpmcache artifactory.cache.metadata.folder=/mount/cache
If the directories are modified, ensure JFrog Artifactory has permission to access the new directories. Afterward, restart Artifactory and ensure that the new directories are populated accordingly.
Here is how you can set these variables for Helm installations of Artifactory.