This is a very simple trick that I had to use yesterday in work. What can you do if you want some content on a server and you want to test it on another one? Or if you have some functions, or even an application and you want to install it on another CQ Instance? You can create a package for that.
Create a Package
Open your CQ Package Manager, it is usually located at http://yourhost:port/crx/packmgr/index.jspClick on “create package”.
Insert a name for it and a version(optional).
You can also select another package group. Click OK.
Click on “Build” to build your package, confirm.