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?

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.
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

4 replies

Ojjis
Level 7
October 16, 2015

Are you sure you are running the correct command ?
From http://dev.day.com/docs/en/crx/current/how_to/package_manager.html
it looks like this should be used:

 

http://localhost:7402/crx/packmgr/service/console.html/etc/packages/mycontent.zip?cmd=install

/Johan

Translate
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

Translate
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

Translate
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 

Translate