Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

unable to install a package using curl command?

Mahesh_Vikram
Level 5
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
Sham_HC
Correct answer by
Level 10
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
Mahesh_Vikram
Level 5
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...

Sham_HC
Correct answer by
Level 10
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

Ojjis
Level 7
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