Importing packages to the system
Importing uploads an .ezpkg file, checks it, and unpacks it into the repository its vendor names (local when it names none). Importing installs nothing yet.
In the administration
- Open Setup > Packages and press Import new package (/package/upload, policy package/import).
- Choose the .ezpkg, .tar.gz or .tgz file and press Import package.
Before anything is written the archive is checked: its name and format, its size and number of entries, that every path stays inside the package (no .., no absolute path, no link pointing outside), that it has a well-formed package.xml naming a valid package, and that no package of that name exists in any repository. The page names the first check that failed. Then the package is validated (each document well formed, a JSON package against its schema). An existing package is never overwritten: remove the old one first, or give the new one another name.
A package with items to install opens its install step next (see Installing packages); any other package opens its page.
Large packages
The limits of an upload are set in package.ini, and PHP's upload_max_filesize and post_max_size apply first; the page shows the server's limit.
# settings/override/package.ini.append.php [UploadSettings] # bytes of the archive (256 MB) MaxArchiveSize=268435456 # bytes once unpacked (2 GB) MaxUnpackedSize=2147483648 MaxEntries=50000
For a package larger than PHP allows to upload, copy the file to the server and import it from a shell, which applies the same checks:
php ezpm.php import var/tmp/mypackage.ezpkg
Archives of older releases
Packages made by the 3.x, 4.x and 5.x releases import: the tar formats of those releases (V7, ustar, GNU) and PAX archives are read.
More
- Packages, section 6, and comparing a package with the site.
In this section
Contributors
- Svitlana Shatokhina
- Andrea Melo Maintainer
- Geir Arne Waaler Maintainer
- Marcos Otero Garcia Commenter
- ah Commenter
- Graham Brookins Updated Maintainer
Comments (2 historical)
Written by readers of the earlier documentation sites, kept as they were.
Importing large packages
Marcos Otero Garcia ·
What about large package files with file sizes around 450 MB?
To where shall they be uploaded, when uploading per http exceeds the maximum accepted file size?
Thanks in advance.
Best Regards,
Marcos Otero Garcia
Re: Importing large packages
ah ·
Use the commandline tool ./ezpm.php
http://ezpedia.org/en/ez/command_line_package_manager
Regards