Posted on 08-23-2020 11:13 PM
I know how to manually download Defender. I was wondering if there is a way to download the up to date version on the command line?
Solved! Go to Solution.
Posted on 08-24-2020 01:46 AM
We use the following script to download and install pkg with the current version
#!/bin/bash
link=$4
programName=$5
/usr/bin/curl -s -o /tmp/"$programName.pkg" -L $link
sudo jamf install -package $programName.pkg -path /tmp -target /
rm /tmp/$programName.pkg
If you go to https://macadmins.software/ and copy the link to the installers, it's always the latest version via static link :)
Posted on 08-24-2020 01:46 AM
We use the following script to download and install pkg with the current version
#!/bin/bash
link=$4
programName=$5
/usr/bin/curl -s -o /tmp/"$programName.pkg" -L $link
sudo jamf install -package $programName.pkg -path /tmp -target /
rm /tmp/$programName.pkg
If you go to https://macadmins.software/ and copy the link to the installers, it's always the latest version via static link :)
Posted on 08-25-2020 01:55 AM
Thanks @whitebeer. I guess it's the plists that get put into the config profile that do all the configuration for updates etc
Much appreciated!
Will give this a try