Exporting packages to files
Any package of a repository can be downloaded as one .ezpkg file, to keep a copy or to import it into another installation. Downloading only reads the package.
In the administration
- Open Setup > Packages (/package/list). The list shows the packages of every repository; a repository tile, or the Repository filter, narrows it to one.
- Press Download on the package's card, or open the package (View) and press Download there.
The file is named <name>-<version>.ezpkg, a gzip compressed tar archive. The direct address is /package/export/<name>, or /package/export/<name>/<repository> for a package outside local. Download as JSON on the package's page sends the same package in the JSON format (<name>-<version>.json.ezpkg); both formats import and install the same way.
The download needs the policy package/export for the package's type. Large packages are sent in pieces, and a download that broke off can be resumed (HTTP range requests are answered).
From a shell
php ezpm.php export sevenx_classes -d var/tmp
-d names the directory the file is written to.
More
- Packages, section 5.
- Importing packages to the system.
Contributors
- Svitlana Shatokhina
- Andrea Melo Maintainer
- Geir Arne Waaler Maintainer
- Graham Brookins Updated Maintainer
Comments
Add a comment