Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

unable to install a package using curl command?

Avatar

Level 5

Hi,

I am having 5.6.1 in my environment.

I have uploaded package using curl command successfully.

Now am using curl command to install a package it is giving an error. Please find the attached document with the error

1 Accepted Solution

Avatar

Correct answer by
Level 10

It should be

  •  .json & not console.html
  •  As johan said need to have group name included.

 As an example try with

/usr/local/bin/curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq560/product/cq-geometrixx-outdoor...

View solution in original post

4 Replies

Avatar

Level 5

Hi Johan,

Please find the attachment.

I tried the with the below command.

/usr/local/bin/curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/console.html/etc/packages/cq-geometrixx-outdoors-ugc-pkg-5...

Avatar

Correct answer by
Level 10

It should be

  •  .json & not console.html
  •  As johan said need to have group name included.

 As an example try with

/usr/local/bin/curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/day/cq560/product/cq-geometrixx-outdoor...

Avatar

Level 7

Ive tried with the following command:

curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my.company.package/my-common-package-1....
and that works like a charm.. Whats important is the /my.company.package/ part which you would find for your package if you look into the package manager on your server.. if thats wrong it would have problems to find that package and you will get the no package error.

edit:  /etc/packages/day/cq550/product/cq-geometrixx-pkg-5.5.4.zip  would be the full geometrixx package path for 5.5