unable to install a package using curl command? | Community
Skip to main content
Level 4
October 16, 2015
Solved

unable to install a package using curl command?

  • October 16, 2015
  • 4 replies
  • 1963 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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-outdoors-ugc-pkg-5.6.29.zip?cmd=install

4 replies

Ojjis
Level 7
October 16, 2015
Level 4
October 16, 2015

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.6.29.zip?cmd=install

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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-outdoors-ugc-pkg-5.6.29.zip?cmd=install

Ojjis
Level 7
October 16, 2015

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.1.1-SNAPSHOT.zip?cmd=install
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