Silent install macOS and Linux builds

Problem

Sometimes you may need to install a product without any user interaction. CloudBerry Backup for Windows supports this mode with the following flag:

CloudBerryBackupBuild.exe /S

For macOS and Linux versions naturally have a different syntax for this purpose:

First, mount the CloudBerryBackup.dmg image using hdiutil:

sudo hdiutil attach CloudBerryBackup.dmg

Once the image mounted to /Volumes/ImageName, the package can be installed:

sudo installer -package /Volumes/ImageName/ImageName.pkg -target /

Change ImageName to yours accordingly!

Once installed, we can detach the image:

sudo hdiutil detach /Volumes/ImageName

Linux

Linux build is installed using package manager (e.g. dpkg, rpmetc). So you may need to check environment variables for those package managers to ignore questions during installation. For example for Debian family the following should disable questions and perform an unattended installation:

export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical