Linux Bash Shell Command to Download and Install an App

# Set file path variable
vagrantFile=https://releases.hashicorp.com/vagrant/2.2.14/vagrant_2.2.14_x86_64.deb

# Download and install a Debian based file
fileName="${vagrantFile##*/}"
curl -O $vagrantFile
sudo apt install ./$fileName
Posted on Categories Linux

Leave a Reply

Your email address will not be published. Required fields are marked *