using curl to query package manager for location of package under /etc/packages | Community
Skip to main content
Level 2
Dec 16, 2019 8:24 PM UTC
Solved

using curl to query package manager for location of package under /etc/packages

Uploaded/installed packages are placed in function specific folders.

 

How can I query via curl to get the folder location?

 

I would hate to have to install/locate manually to get that location before replicating.

Nirmal_Jose
Nirmal_JoseAccepted solution
Employee
Dec 16, 2019 9:56 PM UTC

Packages are always grouped based on 'group' property of the package. For example, core components have mentioned group as 'adobe/cq60' and is placed at /etc/packages/adobe/cq60/core.wcm.components.config-2.2.2.zip

 

If you want the full list of packages you can use the package list API at  http://localhost:4502/crx/packmgr/list.jsp

5 replies

sunjot16
Employee
Dec 17, 2019 7:17 PM UTC
ArobMFSAuthor
Level 2
Dec 18, 2019 7:30 PM UTC
I am able to use curl to upload/install packages. My issue is in how to use the requests module of Python v3.
Translate
Employee
Dec 17, 2019 1:49 AM UTC

You can use the GET command below:

 

 http://<host>:<port>/etc/packages/my_packages.infinity.json

 

Where "my_packages" is one of the folders under /etc/packages where packages will be stored. You can replace this with your custom folder name.

Translate
Nirmal_Jose
Nirmal_JoseAccepted solution
Employee
Dec 16, 2019 9:56 PM UTC

Packages are always grouped based on 'group' property of the package. For example, core components have mentioned group as 'adobe/cq60' and is placed at /etc/packages/adobe/cq60/core.wcm.components.config-2.2.2.zip

 

If you want the full list of packages you can use the package list API at  http://localhost:4502/crx/packmgr/list.jsp

Translate