Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

The local package repository

Where an installation keeps its packages (var/storage/packages), how the vendor directories, local and the system repository are chosen, what the .cache directory is, how a local index.xml makes an offline install…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/site-packages/basics/the-local-package-repository.md

On this page

The local package repository

This page is for administrators and hosting teams who look into var/storage/packages/, copy packages between servers, or prepare an installation without network access. It answers: where packages are kept, how the directories are named, what each one is for, and what you may touch.

Contents

  1. Where it is
  2. The layout
  3. How a vendor directory is chosen
  4. The local repository and the system repository
  5. The .cache directory
  6. An offline index.xml
  7. What you may do by hand
  8. Related pages

Where it is

eZPackage::repositoryPath() builds the path from three parts:

var / site.ini [FileSettings] StorageDir / package.ini [RepositorySettings] RepositoryDirectory
var / storage                            / packages

The first part is the literal var; the repository does not move with [FileSettings] VarDir. As shipped (StorageDir=storage, RepositoryDirectory=packages) it is var/storage/packages/ below the installation root, for every siteaccess. A new installation may not have the directory yet; the kernel then lists no repository besides local.

The layout

var/storage/packages/
├── 7x/                              vendor "7x": the setup wizard's system repository
│   ├── index.xml                    optional: the offline index (see below)
│   ├── sevenx_multisite/
│   │   ├── package.xml
│   │   ├── .cache/package.php       the kernel's parsed copy, not part of the package
│   │   ├── documents/  files/  settings/
│   ├── sevenx_classes/
│   └── sevenx_multisite_democontent/
├── ez-systems/                      vendor "eZ systems"
│   └── ezstarrating_extension/
├── local/                           packages without a vendor, and new packages from the wizards
└── dryrun/                          only during a kickstarter dry run, removed afterwards

Every directory directly below var/storage/packages/ is a repository; every directory in a repository that holds a package.xml or package.json is a package (eZPackage::packageRepositories(), fetchPackages()). Its directory name is the package's <name>. On a fresh sevenx_multisite installation the 7x repository holds sevenx_multisite, sevenx_classes and sevenx_multisite_democontent.

How a vendor directory is chosen

PackageRepository
Imported, with a <vendor>the vendor run through the urlalias transformation: 7x stays 7x, eZ systems becomes ez-systems
Imported, without a <vendor>local
Imported with an explicit repository (ezpm import with -r, a kickstarter dry run)that repository
Created by a wizard or ezpm createlocal (eZPackage::create(): "New packages always use local repository")

Two packages of the same name in two repositories can exist; eZPackage::fetch( $name ) without a repository returns the first it finds, local first. Keep names unique across repositories.

The local repository and the system repository

NameWhat it isType in the code
localAlways the first repository, created on demand; new packages go herelocal
every other directoryOne repository per vendorglobal
the system repositoryThe repository named by [RepositorySettings] Vendor (7x): where the setup wizard looks for an offline index.xmleZPackage::systemRepositoryInformation()

The administration's package list shows the repositories and lets you switch between them; see The package list and package page.

The .cache directory

When the kernel reads a package, it writes the parsed definition to <package>/.cache/package.php and uses that copy as long as it is not older than package.xml and was written by the same code version (CACHE_CODE_DATE). It is a cache: deleting it is harmless, and it is never exported or archived (exportToArchive() copies only documents, files, simplefiles, settings and the item directories). When you edit a package.xml in place, its newer time stamp makes the kernel read it again.

An offline index.xml

When the setup wizard or the kickstarter cannot download <RemotePackagesIndexURL>/index.xml, it copies var/storage/packages/<Vendor>/index.xml (with Vendor=7x: var/storage/packages/7x/index.xml) and uses it instead (eZStepSiteTypes::retrieveRemotePackagesList()). Combined with packages that are already imported, this allows an install without network access:

# on a machine with access, from the installation root
curl -s -o var/storage/packages/7x/index.xml \
  https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/index.xml
php ezpm.php import sevenx_multisite.ezpkg
php ezpm.php import sevenx_classes.ezpkg
php ezpm.php import sevenx_multisite_democontent.ezpkg

The url attributes in that index still point to the server, so every package a run needs must already be imported. The full procedure, including mirrors, is in Offline installs and mirrors.

What you may do by hand

ActionSafe?Notes
Copy a package directory into a repositoryyesSame as an import, without the archive checks; keep the directory name equal to <name>
Delete a .cache/ directoryyesIt is written again
Delete a package directoryyes for the repositoryPrefer Remove in Setup > Packages or ezpm delete: they also clear the installed record. What an install put on the site stays either way
Edit package.xml in placewith careA broken definition hides the package. Make lasting changes in the package's source repository
Put a package in a directory that is not a repositorynoIt is not found
Add symbolic links inside a packagenoThe removal confirmation refuses a package whose directory contains a link

Tip

var/storage/packages/ belongs in your backups when you install offline or keep packages of your own there. The packages of the package server can be downloaded again at any time.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x