tag:blogger.com,1999:blog-5778419059463879376.post7060387175555668980..comments2024-03-18T22:43:30.073-07:00Comments on Adobe CQ/Adobe AEM: How to delete packages created before certain date from package manager using curl in CQ / WEMYogihttp://www.blogger.com/profile/13222275932054732457noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-5778419059463879376.post-85873239899207837862015-06-18T23:30:24.385-07:002015-06-18T23:30:24.385-07:00Hi Team,
I want to delete packages between certai...Hi Team,<br /><br />I want to delete packages between certain time period like 2015-06-11 to 2015-06-18. I tried all the possibilities mentioned here. <br /><br />And one more requirement is like "I want to delete all the old packages if any one of the existing packages contains the same content which I am uploading now."<br /><br />Could u please help me out in writing the curl command.<br /><br />With Regards,<br />Sravani.Anonymoushttps://www.blogger.com/profile/13458839138767280467noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-2531367362460970342015-02-19T04:43:38.140-08:002015-02-19T04:43:38.140-08:00Apologies..
The command i am using..
curl -u : -F...Apologies..<br /><br />The command i am using..<br />curl -u : -F package=c:/user/downloads/package.zip http://localhost:4502/crx/packmgr/service/.json/?cmd=upload<br /><br /><br />The result is : {"success":false,"msg":"package filter parameter missing"}Anonymoushttps://www.blogger.com/profile/15421119382554953790noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-63838303452786675062015-02-19T04:40:29.821-08:002015-02-19T04:40:29.821-08:00I need to upload a package from local to server us...I need to upload a package from local to server using curl command. I am using the below command:<br />curl -u -F package=C:/Users/Downloads/package.zip -X POST http:///crx/packmgr/service/.json/?cmd=upload<br /><br />The result is : {"success":false,"msg":"package filter parameter missing"}<br /><br />or else<br /> <br />I need to download package from one instance and also i need to upload same package into same instance.can you provide the curl command for this??<br />please help me out !!Anonymoushttps://www.blogger.com/profile/15421119382554953790noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-62926662454304122822015-02-19T04:39:05.789-08:002015-02-19T04:39:05.789-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/15421119382554953790noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-50850288239822732562014-02-28T17:47:15.361-08:002014-02-28T17:47:15.361-08:00Yes. Should work. Else you can always get to .snap...Yes. Should work. Else you can always get to .snapshot folder and delete them.<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-17608862076595887222014-02-20T06:13:40.068-08:002014-02-20T06:13:40.068-08:00Hi Yogesh
Would this method work if you wanted to...Hi Yogesh<br /><br />Would this method work if you wanted to purge backup packages from .snapshot?Anonymoushttps://www.blogger.com/profile/08918321952978217647noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-85196418393333659472013-09-30T16:11:12.638-07:002013-09-30T16:11:12.638-07:00Please check http://www.wemblog.com/2012/04/how-to...Please check http://www.wemblog.com/2012/04/how-to-change-package-install-behavior.html you can dynamically change filter to create package.Yogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-74097052151317224602013-09-20T16:49:50.892-07:002013-09-20T16:49:50.892-07:00hi
can you create a package with some filters usin...hi<br />can you create a package with some filters using curl ??Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-1306699493635318492013-09-15T12:11:35.345-07:002013-09-15T12:11:35.345-07:00Hari,
You can also use curl script to delete all ...Hari,<br /><br />You can also use curl script to delete all packages as mention here http://www.wemblog.com/2013/05/how-to-perform-system-clean-up-in-adobe.html<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-27800235100951961752013-09-10T03:45:25.392-07:002013-09-10T03:45:25.392-07:00I'm able to create a package using the followi...I'm able to create a package using the following command - <br />curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages?cmd=create -d packageName=testpackage -d groupName=day {"success":true,"msg":"Package created","path":"/etc/packages/day/testpackage.zip"}<br /><br />But have no idea on how to set multiple filter(paths) conditions? Please can you let me know how to do this.Anonymoushttps://www.blogger.com/profile/10185653812967894444noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-38696359328813970122012-04-11T13:15:48.595-07:002012-04-11T13:15:48.595-07:00I think you are missing -u : ... If package exist...I think you are missing -u : ... If package exist, Above command with -u should work. I just tested and it works for me.<br /><br />curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/my_packages/config.zip?cmd=build<br />{"success":true,"msg":"Package built"}Yogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-41112869975909731792012-04-10T06:23:12.711-07:002012-04-10T06:23:12.711-07:00Hi Yogesh,
I need to build a package using curl c...Hi Yogesh,<br /><br />I need to build a package using curl command. I am using the below command:<br />curl -X POST http://localhost:5412/crx/packmgr/service/.json/etc/packages/my_packages/Url-shorten.zip?cmd=build<br /><br />The result is : {"success":false,"msg":"no package"}<br /><br />Any thoughts?<br /><br />I am using CQ 5.4<br /><br />Thanks in advance<br /><br />Regards,<br />PradeepPradeep Mishrahttps://www.blogger.com/profile/13528428742876248530noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-74700477687767104712012-03-30T14:22:47.037-07:002012-03-30T14:22:47.037-07:00Gunesh,
You can use force upload option. I think ...Gunesh,<br /><br />You can use force upload option. I think it is force=true as form data in post.<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-39004184370044851352012-03-28T08:22:24.963-07:002012-03-28T08:22:24.963-07:00Yogesh,
This definitely works. Thanks. Also if I d...Yogesh,<br />This definitely works. Thanks. Also if I download a package to current folder and download it again with already existing package to the same folder, how to overwrite the existing package. I achieved it by deleting from current folder before downloading it again, but it would be great if I can overwrite the same package. I am using the curl for download from batch script.<br /><br />GuneshGuneshhttps://www.blogger.com/profile/03928400965921505634noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-86345181566486869302012-03-23T23:46:16.255-07:002012-03-23T23:46:16.255-07:00Gunesh,
Use
curl -C - -O -u admin:admin http://...Gunesh,<br /><br />Use <br /><br />curl -C - -O -u admin:admin http://localhost:4502/etc/packages/groupname/packagename.zip<br /><br />Let me know if that works for you.<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-58727410705404377482012-03-23T22:50:29.637-07:002012-03-23T22:50:29.637-07:00Correction:
curl -u admin:admin http://localhost:4...Correction:<br />curl -u admin:admin http://localhost:4502/etc/packages/groupname/packagename.zipGuneshhttps://www.blogger.com/profile/03928400965921505634noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-38232428032856813682012-03-23T22:48:54.728-07:002012-03-23T22:48:54.728-07:00Yogesh,
I am using this command in a batch file
cu...Yogesh,<br />I am using this command in a batch file<br />curl -u admin:admin http://localhost:4502/etc/packages//<br />All other curl commands are working except this one on 5.4.Guneshhttps://www.blogger.com/profile/03928400965921505634noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-87616255144726573562012-03-23T21:11:13.460-07:002012-03-23T21:11:13.460-07:00Gunesh,
What curl command you are using to downlo...Gunesh,<br /><br />What curl command you are using to download ?<br /><br />YogeshYogihttps://www.blogger.com/profile/13222275932054732457noreply@blogger.comtag:blogger.com,1999:blog-5778419059463879376.post-31737955350531556912012-03-15T09:55:59.585-07:002012-03-15T09:55:59.585-07:00Using curl I have to build, download a package fro...Using curl I have to build, download a package from one instance and upload, install in another instance. I have created a package and filter definitions and built the package from command line. All these steps should happen in windows envt in a .bat file.<br />But I am having issues with simple download of package when I run the curl command. It returns gibberish... I would like to download the file to the current folder and upload to the new instance. Could you let me know the reason for the issue and any better approach. <br /><br />-GuneshGuneshhttps://www.blogger.com/profile/03928400965921505634noreply@blogger.com