Mark dotnet pkg as held
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 17 Nov 2020 20:17:36 +0000 (15:17 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 17 Nov 2020 22:12:21 +0000 (17:12 -0500)
deps/dotnet/install_on_ubuntu.sh

index 59a42fe..fc62cd2 100755 (executable)
@@ -2,12 +2,14 @@
 
 set -e
 
-PKG='packages-microsoft-prod.deb'
+PKG_FILE='packages-microsoft-prod.deb'
+PKG_NAME='dotnet-sdk-3.1=3.1.100-1'
 
 mkdir -p data
-wget https://packages.microsoft.com/config/ubuntu/18.04/"$PKG" -O data/"$PKG"
-sudo apt install ./data/"$PKG"
+wget https://packages.microsoft.com/config/ubuntu/18.04/"$PKG_FILE" -O data/"$PKG_FILE"
+sudo apt install ./data/"$PKG_FILE"
 sudo apt update
 sudo apt install apt-transport-https
 sudo apt update
-sudo apt install dotnet-sdk-3.1=3.1.100-1
+sudo apt install "$PKG_NAME"
+sudo apt-mark hold "$PKG_NAME"
This page took 0.022687 seconds and 4 git commands to generate.