X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/80d3b3ade1b5c65ec816184ff69e10b0f2e3f4a5..070b15b08357e6aa3e5683b59c932a3ed6336537:/install/powershell.sh diff --git a/install/powershell.sh b/install/powershell.sh index 038e76a..fc113cb 100755 --- a/install/powershell.sh +++ b/install/powershell.sh @@ -1,4 +1,31 @@ if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then - echo "************** Install PowerShell" - sudo apt-get install powershell + +################################### +# Prerequisites + +# Update the list of packages +sudo apt-get update + +# Install pre-requisite packages. +sudo apt-get install -y wget + +# Get the version of Debian +source /etc/os-release + +# Download the Microsoft repository GPG keys +wget -q https://packages.microsoft.com/config/debian/$VERSION_ID/packages-microsoft-prod.deb + +# Register the Microsoft repository GPG keys +sudo dpkg -i packages-microsoft-prod.deb + +# Delete the Microsoft repository GPG keys file +rm packages-microsoft-prod.deb + +# Update the list of packages after we added packages.microsoft.com +sudo apt-get update + +################################### +# Install PowerShell +sudo apt-get install -y powershell + fi \ No newline at end of file