Deploying PKG using the curl

dtekum
New Contributor III

I wish to download a 50Mb pkg installer from a website onto macs. when I run the bellow command it only downloads 152 bytes of the pkg instead of 50Mb. What am I doing wrong?

curl https://somewebsite.com/packname.pkg -o /Users/Shared/packagename.pkg

 

1 REPLY 1

honestpuck
Contributor

dtekum,

Do you have curl working to download anything or is it broken for all packages? If it is just this package what is the URL you are downloading? Is it behind a log in?

Are you doing this in a script or entirely from the command line?

What happens when you paste the URL https://somewebsite.com/packname.pkg into Safari?