Auto install package

Is it possible to install a package automatically using autoscript? I’m trying to get imagemagick to support svg but this requires inkscape to be installed first.

E.g I have a bash autoscript:

#!/usr/bin/env bash

# Update apt repositories
sudo add-apt-repository universe;
sudo add-apt-repository ppa:inkscape.dev/stable;
sudo apt-get update;

# Install inkscape
sudo yes | apt-get install inkscape;

Yes, you can do this either for all PHP images equally or for each image separately:

https://devilbox.readthedocs.io/en/latest/autostart/custom-scripts-per-php-version.html

https://devilbox.readthedocs.io/en/latest/autostart/custom-scripts-globally.html