How to Work With Packages

This section describes how to use the following in CQ:

  • Package Manager, which you use to manage the packages in your local CQ installation. including how to upload, create, and download packages. It also explains what packages are and how to provide permissions to them.
  • Package Share, which lets you find, share, and download packages, components, and hotfixes from the Day server. You can also upload packages for internal company use.

What are Packages?

Packages can include content and project-related data. A package is a zip file that contains the content in the form of a file-system serialization (called "vault" serialization) that represents the content from the repository as an easy-to-use-and-edit representation of files and folders.

Additionally, it contains vault meta information, including a filter definition, and import configuration information. Additional content properties can be included in the package, such as a description, a visual image, or an icon that are not used for package extraction; these properties are for the content package consumer for informational purposes only.

You can perform the following actions with packages:

  • Create new packages
  • Modify existing packages
  • Build packages
  • Upload packages (CQ does not automatically install packages after uploading)
  • Install packages
  • Download packages, such as hotfixes, from the Package Share library
  • Upload packages to the internal company section of the Package Share library
  • Download packages from CQ to a local machine
  • Apply package filters
  • View package information

As a package can contain an icon, Day uses the following conventions for official packages:

Note

To avoid a mix-up, use a descriptive icon for your package and do not use one of the official Day icons.

   Official Day Hotfix package
 
 Official Day CQ5 Installation or Extension package
 
Official Feature packs

Using the Package Manager

The Package Manager manages the packages on your local CQ installation.

Providing permissions to the Package Manager

To grant users the right to create, modify, upload, and install packages, you need to give them the appropriate permissions at the following locations:

  • /etc/packages (full rights except delete)

Users must have rights to the package (/etc/packages) as well as the node that contains whatever is inside the package.

See Setting permissions for instructions on changing permissions.

Creating new packages

To create a new package:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Click New Package.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_22/file

3. Enter the name of your new package and the group (folder) you would like it to belong to and click OK.  If you leave the group name blank, it will install the package in the main package list. Use groups to organize your packages.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_5/file

4. CQ lists the package in the appropriate folder. Click the package icon to open the package.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_3/file

5. Click Edit to open the package editor. Here, you can add a description, change the icon, and add filter definitions. Click OK after you are finished editing.

Note

  • CQ automatically adds the Version after you build the package.
  • One package can contain as many filter definitions as you like, so that nodes from different locations can easily be combined into one package.

6. Add a package screenshot by double-clicking the image component in the Screenshots area, adding an image, and clicking OK. You add additional screenshots by dragging the Package Screenshots component from the sidekick into the Screenshots area.

7. Drag the Filter Definition icon from the sidekick to the Package Filters area. Double-click to open it and enter the path for the content you want to package. You can add exclude and include filters as described in Applying package filters. Click OK when finished.

For simple package definitions, there is no need to specify include or exclude rules. The following example is for informational purposes only and would better be served by a root path pointing to /content/en.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_2/file

8. Click Build to build your package. CQ adds package information to the package list.

Note

To see what content the package includes before building it, click Preview

Applying package filters

CQ allows you to add the include and exclude filters to the path so that you can include or exclude certain content. The following table describes these filters and provides examples.

 Filter Description  Example 
 include

Including a directory means to include that directory and all the child files and folders in that directory, but not other files and directories.

Syntax is "include:" followed by an XPath expression to select all the nodes that you want to include. You select Include from the drop-down menu.

include:/libs/sling/install(/.*)? 
 exclude

Excluding a directory means to exclude that directory and all child files and folders in that directory.

Syntax is "exclude:" followed by an XPath expression to select all the nodes that you want to exclude. You select Exclude from the drop-down menu.

 exclude:/libs/cq/widgets/test(/.*)?

Note

One package can contain as many filter definitions as you like, so that nodes from different locations can easily be combined into one package.

To apply package filters:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Navigate to the package that you want to apply package filters to and click the package icon to open it.

3. Double-click the path you want to add filters for. (Or if necessary, create a new path by dragging the Filter Definition icon from the sidekick to a blank component in the Filters area.)

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_0/file

4. If necessary, select the root path.

5. Enter include and exclude rules. Add more rules by clicking the Plus symbol + button. Remove rules by clicking the Minus symbol - button. The order of how the rules appear does matter. Order the rules with the Up or Down button.

6. When finished entering rules, click OK.

Downloading Packages

Downloading packages means doing one of the the following:

  • Downloading packages from the Package Share site at dev.day.com where the packages are installed into your repository. These packages include hotfixes and other shared packages.
  • Downloading a package from CQ to your computer.

This section describes how to download a package from CQ to your computer. See Using Package Share for information on downloading hotfixes, feature packs, and packages from your company's package share.

To download a package from CQ to your computer:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Navigate to the package you want to download.

3. Click the blue, underlined zip file link in the package you want to download. CQ downloads the package to your computer.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_4/file

Uploading Packages

A package upload refers to uploading a package from your local drive into the CQ Package Manager.

Note

To upload a package to the Package Share, navigate to the package and open it. Click Share to upload it to your company's private Package Share.

To upload a package:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image/file

2. Click Upload Package and browse to the package that you want to upload and click OK. The new package is listed in the Package Manager list. To make the content available to CQ, be sure to install the package.

Editing Package Settings

You can edit a variety of package settings, including the package description, icon, and screenshots, as well as package filters and advanced settings regarding dependencies and provider information. This procedure describes how to edit package settings. Adding screenshots gives users an idea of what the content looks like before installing. For more information on filters, see Applying Filter Definitions.

To edit the contents of a package:

1. In the Package Manager, navigate to the package you want to edit and click the package icon to open it.

2. Click Edit. By default, the Settings tab opens. Enter a description, if desired, and any fixed bug or issues (one per line).

Note

CQ automatically adds the Version count after you build the package.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_7/file

3. Click Advanced. Here you enter additional information that you want to display, including any dependencies, replaced packages, and provider and tester information.

Field Description Format/Example
Depends on Lists dependency information that needs to be respected whenever other packages are necessary to let the current package run as expected. This field is important when using hotfixes. groupId:name:version
Replaces Replaces the information for the package that becomes obsolete when you install this package. Before installing, check that this package includes all necessary content from the obsolete package so no content is overwritten. groupId:name:version
Provider Name Name of the package Day Software
Provider URL URL of the provider http://www.day.com
Provider Link Package-specific link to a provider page http://www.day.com/mypackage.html
Tested With The product name and version this package is targeted to or is compatible with. CQ5.3
/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_8/file

4. To change the package icon, click Thumbnail Image. Either drag an image from the Content Finder or upload an image. Crop or rotate the image, as necessary.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_12/file

6. Click OK when finished making changes.

7. To add screenshots pertaining to your package, double-click the image icon in the Screenshots area and add an image. To add multiple screenshots, drag the Package Screenshot component from the sidekick to the Screenshots area. Screenshots provide a visual cue of what the content looks like before installing.

8. To modify the path and the package filters, either double-click an existing path to modify it or add another path by dragging the Package Filter definition to the Package Filters area. For information on applying filters, see Applying package filters.

9. If necessary, re-build the package by clicking Build.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_15/file

Building packages

You build packages that you can later install into a CQ instance.

Note

If you are changing the package definition, you can re-wrap the definition of the package without rebuilding the contents by clicking Rewrap.

To build a package:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Navigate to the package you want to build and open it by clicking the package icon.

3. Click Build. CQ displays a confirmation that the package was built and updates the package list information.

Note

To see what content will be contained in the package before building it, click Preview

Installing Packages

After you upload a package, you need to install the content. To have a package installed and functional, it needs to be both uploaded to CQ (either from your local drive or from the package share) and be installed.

Note

  • Installing a package can overwrite existing files or can delete existing files in the same folders that are defined in the package. Only upload a package if you are sure that it does not delete or overwrite files you need.
  • To see what content will be contained in the package before building it, click Preview.

To install a package:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Navigate to the package you want to install. Packages that have not yet been installed have the Install button next to it. (Alternatively, you can open the package by clicking on its icon to access the Install, Test Install, and Contents commands.)

3. Click Install. The word Installed appears next to the package after it has been installed.

Note

If you want to perform a test installation of the package without modifying any of the contents, open the package and click Test Install. To see a list of package contents, click Contents.

Uninstalling Packages

CQ lets you uninstall packages by reverting to the latest snapshot.

To uninstall the contents of a package:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Navigate to the package you want to uninstall and click the package icon of the package you want to remove.

3. Click Uninstall to remove the contents.

Viewing package information

To view package information:

1. On the CQ5 Welcome screen, click Packages and then Package Manager.

2. Navigate to the package you want to view information for and click the package icon. CQ displays package information.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_6/file

Deleting packages

To delete a package:

1. In the Tools menu, click the Packages folder so the packages are listed in the right-hand pane.

2. Click the package you want to delete so that it is highlighted and do one of the following:

  • Click Delete in the menu.
  • Right-click and select Delete.
/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_9/file

 3. CQ confirms that you want to delete the package. Click OK to confirm the deletion.

Note

The installed files/nodes from the package are not deleted.

Using Package Share

The Package Share is a publicly available server to share Content-Packages, powered by Day. Packages can include official hotfixes, feature sets, and CQ-updates or CQ-user generated content to share with other users. Access to the Package Share is available for partners and customers of Day. A registration form in the Package Share must be filled out for access.

With Package Share, you can download Day content packages and also upload and share packages within your company.

Note

Package Share is currently unavailable if your company runs an http proxy that requires authentication. Package Share is only available when the machine where CQ are installed has access to the Internet without requiring authentication.

Package Share Access and Structure

There is no anonymous access to the Package Share; that is, only registered users are allowed to view and download packages.

Note

To use Package Share functionality, you must have the appropriate access to the Day web site. You need to have an account at www.day.com, with your email address as user identifier.

Package Share access in CQ offers the link to register an account if you do not have one. Alternatively, you can register online on the registration page. In case you forgot your password, please use the Reset the password link on the registration page.

The following describes the Package Share structure.

Note

Which packages are visible to you is determined by the license type of your CQ server and the company group you belong to.

Groups

The following groups are available for package share:

  • Company-internal sharing
  • Packages provided by Day (updates, feature packs, and hotfixes)
/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_14/file
Public share

The package share group gives overall read permission to the package share and the public folder.  Individual company homes are denied. This folder is called Public and provides access to Day's public packages. 

Company share

Each company gets its own group with an allow read/write on its company home. In the example, Day is the user's company, which is why the user has access to those private packages.

Users

A packageshare user is a member of his or her respective company group. A user of a partner can be a member of his or her customer groups.

Requesting access to the Package Share library

If you need access to Day's Package Share, please fill out the registration form.

Day will check with the appropriate departments for required/allowed permissions and add you to your company's group.

Package Status

In Day's Package Share library, each package has a status indicator to let you know whether you have already downloaded or installed the package. The indicator appears to the right of the package name as in the following example:

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_21/file
Package Status Description
Download This package is available for download. It has not been downloaded to your local CQ installation.
Downloaded This package has already been downloaded to your local CQ installation but has not yet been installed.
Installed This package has been downloaded and installed onto your local CQ installation.

Downloading and installing packages from Package Share

Before downloading and installing packages from Day's Package Share, be sure you have access to the library. See Requesting access to the Package Share library.

Caution

Installing a package can overwrite existing content in the repository. Therefore, Day recommends that you perform a Test Install first. With a test install, you can inspect whether the content that the package contains conflicts with your existing content.

To download and install packages from Package Share:

1. On the CQ main page, click Packages and then select Package Share. The Package Share page opens.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_11/file

2. Log into Package Share. A list of folders and packages displays. You see a Public folder and one specific to your company.

3. Navigate to the package you want to download and click Download.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_16/file

4. Once downloaded, the word Downloaded appears next to the package.

5. Navigate back to Packages and then navigate to the package you just downloaded.

Note

You find the package you just downloaded located at the same path as it appeared online. For example, if you downloaded a package from Packages > Public > CQ5.3 Hotfixes, your package appears at Packages > Public > CQ5.3 Hotfixes on your local CQ installation.

6. Click Install to install the package to your local CQ installation.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_17/file

Note

If a package has already been installed on your installation, the word Installed appears next to the package in the Package Manager.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_18/file

Uploading packages to the company-internal Package Share

With Day's Package Share, you can upload and share packages within your company. These packages are not available to the general CQ community, but are available to all users registered with your company.

Note

After your packages are uploaded, you may be able to share them with the general CQ community. See making packages available to the CQ general public.

To upload packages to the company-internal Package Share:

1. In CQ, open the package manager by clicking the Packages link on the main page and then clicking Package Manager.

2. Navigate to the package you want to upload and click the package icon to open it.

Note

To share a package, ensure that you have put it in a folder named after your company, for example, geometrixx. Packages in the general Package Manager list or in other folders cannot be shared.

3. Click Share to upload the package to Package Share.

Note

If you have not already done so, CQ asks you to log into the Package Share. The Package Share login is the same as your login to Day websites, such as Day webinars, documentation, and so on.

5. In the Share Package window, click Share to upload it to your internal company's Package Share. CQ shows you the status and indicates when the package has finished uploading. After uploading, you can click the x from the window to exit the Share Package window.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_1/file

After upload, navigate to your company's internal folder to see the package you just shared.

/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_10/file

Making packages available to the Public Package Share

To make a package available to the general CQ community in the public Package Share:

  1. Upload your package to your company's internal Package Share site as described in Uploading packages to the company-internal Package Share.
  2. After it is uploaded, click Sign Up in the Public Sharing area of the page. Someone from Day will evaluate the package and post it to the public folder, if appropriate.
/content/docs/en/cq/current/howto/package_manager/jcr:content/par/image_13/file

Your comments are welcome!
Did you notice a way we could improve the documentation on this page? Is something unclear or insufficiently explained? Please leave your comments below and we will make the appropriate changes. Comments that have been addressed, by improving the documentation accordingly, will then be removed.
(optional)
4 comments
Is there a difference between this package management and the one of CRX described here:
http://dev.day.com/docs/en/crx/current/how_to/package_manager.html
1 Reply » Reply
The Package Managers in CRX and CQ5 use the same core implementation (server engine); however if you are using the Package Manager for CQ 5.3, the CQ Package Manager graphical user interface supports more features such as package icons, more metadata, and the ability to share packages within a company or the CQ community via Package Share.
0 Replies » Reply
Could you please elaborate on term "Rewrap". What is actually happening when i rewrap a package? Why and when might that be useful?
1 Reply » Reply
Rewrapping changes the package information - without changing the package content. Package information is the thumbnail, description, etc., everything you can edit with the edit package dialog.

A major use case is when preparing a package for the package share.
For example, you might have an existing package and decide to share it with others. For that you want to add a thumbnail and add a description. Instead of recreating the entire package with all its functionality (which might take some time and bears the risk that the package is not identical to the original) you can rewrap it and just add the thumbnail and description.
0 Replies » Reply
In order to post a comment, you need to sign-in.
 

Forgotten your password? Reset the password here.

Note: Customers with DayCare user accounts need to create a new account for use on day.com.

***

Copyright © 1993-2010 Day Management AG. All rights reserved.