forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign of install docs for Ubuntu (dotnet#39474)
* Start of tests for ubuntu redesign * add dotnet pivots * adjust pivots * adjustments * updates * Acro; Little cleaning * copy all ubuntu info into new article * Fix link * tweaks * add missing repo instructions * adjust title * linux flag * remove 22.10; ubuntu-other; redirects; * Remove individual ubuntu articles * Add 'other' ubuntu section * fix pivot * Update alpine * Update install script for deb/ubuntu * Lint * Fix ubuntu 22.04 * Unsure why that file was there... * reword include * fix script; add archived versions; archive 23.04 * Found and removed 2304 from list of all pivots * fix script
- Loading branch information
Showing
25 changed files
with
727 additions
and
610 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
author: adegeo | ||
ms.author: adegeo | ||
ms.date: 03/19/2024 | ||
ms.topic: include | ||
--- | ||
|
||
.NET 8.0 isn't available in the Ubuntu package repository. [Register the Microsoft package repository](../linux-ubuntu.md#register-the-microsoft-package-repository) and use that feed to install .NET through APT. If you use the Microsoft package repository to install .NET, you should deprioritize .NET packages from the Ubuntu repository. For more information, see [I need a version of .NET that isn't provided by my Linux distribution](../linux-package-mixup.md?pivots=os-linux-ubuntu#i-need-a-version-of-net-that-isnt-provided-by-my-linux-distribution). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
author: adegeo | ||
ms.author: adegeo | ||
ms.date: 03/18/2024 | ||
ms.topic: include | ||
--- | ||
|
||
.NET is available in the Ubuntu package manager feeds, as well as the Microsoft package repository. However, you should only use one or the other to install .NET. If you want to use the Microsoft package repository, see [How to register the Microsoft package repository](../linux-ubuntu.md#register-the-microsoft-package-repository). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
author: adegeo | ||
ms.author: adegeo | ||
ms.date: 03/18/2024 | ||
ms.topic: include | ||
--- | ||
|
||
The default Ubuntu package repository doesn't contain this version of .NET. Use the [Microsoft package repository instead](../linux-ubuntu.md#register-the-microsoft-package-repository). |
30 changes: 30 additions & 0 deletions
30
docs/core/install/includes/package-manager-failed-to-find-deb-classic.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
author: adegeo | ||
ms.author: adegeo | ||
ms.date: 03/29/2024 | ||
ms.topic: include | ||
ms.custom: linux-related-content | ||
--- | ||
|
||
```bash | ||
# Define the OS version, name, and codename | ||
source /etc/os-release | ||
|
||
# Download the Microsoft keys | ||
sudo apt-get install -y gpg wget | ||
wget https://packages.microsoft.com/keys/microsoft.asc | ||
cat microsoft.asc | gpg --dearmor -o microsoft.asc.gpg | ||
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | ||
|
||
# Add the Microsoft repository to the system's sources list | ||
wget https://packages.microsoft.com/config/$ID/$VERSION_ID/prod.list | ||
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | ||
|
||
# Set ownership | ||
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | ||
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list | ||
|
||
# Update packages and install .NET | ||
sudo apt-get update && \ | ||
sudo apt-get install -y {dotnet-package} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/core/install/includes/package-manager-failed-to-find-deb-new.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
author: adegeo | ||
ms.author: adegeo | ||
ms.date: 03/29/2024 | ||
ms.topic: include | ||
ms.custom: linux-related-content | ||
--- | ||
|
||
```bash | ||
# Define the OS version, name, and codename | ||
source /etc/os-release | ||
|
||
# Download the Microsoft keys | ||
sudo apt-get install -y gpg wget | ||
wget https://packages.microsoft.com/keys/microsoft.asc | ||
cat microsoft.asc | gpg --dearmor -o microsoft.asc.gpg | ||
|
||
# Add the Microsoft repository to the system's sources list | ||
wget https://packages.microsoft.com/config/$ID/$VERSION_ID/prod.list | ||
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | ||
|
||
# Move the key to the appropriate place | ||
sudo mv microsoft.asc.gpg $(cat /etc/apt/sources.list.d/microsoft-prod.list | grep -oP "(?<=signed-by=).*(?=\])") | ||
|
||
# Update packages and install .NET | ||
sudo apt-get update && \ | ||
sudo apt-get install -y {dotnet-package} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.