-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds uninstall #5826
Merged
Merged
Adds uninstall #5826
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
341dcef
Add uninstall
atsansone 86d35fb
Fixed links
atsansone 666bbff
Fix links again
atsansone 40cda5a
Changed render to include
atsansone 6f12687
Updated per @parlough review
atsansone 9571295
Merge branch 'main' into fix-3187
atsansone a23f541
Merge branch 'main' into fix-3187
atsansone 922d6ea
Merge branch 'main' into fix-3187
atsansone e4e3039
Merge branch 'main' into fix-3187
atsansone aaf3524
Merge branch 'main' into fix-3187
atsansone 0c774f0
Merge branch 'main' into fix-3187
atsansone b07cad5
Update src/_includes/install/windows.md
atsansone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
|
||
### Install using a Linux package manager {:.no_toc} | ||
|
||
You have two options to install the Dart SDK on Ubuntu or Debian: | ||
|
||
* Use the [apt-get](#install-using-the-apt-get-package-manager) command. | ||
* Download a [`.deb`](#install-as-a-debian-package) package | ||
and run the `dpkg` command. | ||
|
||
### Install using the `apt-get` package manager {:.no_toc} | ||
|
||
To install Dart with `apt-get`, perform the following steps. | ||
You need steps 1 to 3 only for the first install. | ||
|
||
1. Update the package index files and install the secure HTTP package. | ||
|
||
```console | ||
$ sudo apt-get update && sudo apt-get install apt-transport-https | ||
``` | ||
|
||
1. Download and add the Google Linux GPG public key. | ||
|
||
```console | ||
$ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub \ | ||
| sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg | ||
``` | ||
|
||
1. Add the Dart package repository to your Linux system. | ||
|
||
```console | ||
$ echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' \ | ||
| sudo tee /etc/apt/sources.list.d/dart_stable.list | ||
``` | ||
|
||
1. Use the following `sudo apt-get` commands. | ||
|
||
```console | ||
$ sudo apt-get update && sudo apt-get install dart | ||
``` | ||
|
||
### Install as a Debian package {:.no_toc} | ||
|
||
To install the Dart SDK as a Debian package (`*.deb`), | ||
perform the following steps. | ||
|
||
1. Download the Dart SDK [Debian package](#){:.debian-link-stable}. | ||
|
||
1. Use the `sudo dpkg` command to install the `*.deb` package. | ||
|
||
```console | ||
$ sudo dpkg -i dart_3.4.0-1_amd64.deb | ||
``` | ||
|
||
Substitute `dart_3.4.0-1_amd64.deb` with the current filename. | ||
|
||
## Upgrade the Dart SDK {:.no_toc} | ||
|
||
Use the same command that you used to install the SDK. | ||
|
||
### Upgrade using `apt-get` {:.no_toc} | ||
|
||
If you installed the Dart SDK with `apt-get`, | ||
use the following `sudo apt-get` commands. | ||
|
||
```console | ||
$ sudo apt-get update && sudo apt-get install dart | ||
``` | ||
|
||
### Upgrade using `dpkg` {:.no_toc} | ||
|
||
If you installed the Dart SDK with `dpkg`, | ||
use the `sudo dpkg` command. | ||
|
||
```console | ||
$ sudo dpkg -i dart_3.2.6-1_amd64.deb | ||
``` | ||
|
||
Substitute `dart_3.4.0-1_amd64.deb` with the new upgrade's filename. | ||
|
||
## Uninstall the Dart SDK {:.no_toc} | ||
|
||
### Uninstall using `apt-get` {:.no_toc} | ||
|
||
If you installed the Dart SDK with `apt-get`, | ||
use the `sudo apt-get remove` command. | ||
|
||
1. Use the `sudo apt-get remove` command. | ||
|
||
```console | ||
$ sudo apt-get remove -y dart | ||
``` | ||
|
||
1. Remove the Dart configuration files from your home directory. | ||
|
||
```console | ||
$ rm -rf ~/.dart* | ||
``` | ||
|
||
### Uninstall using `dpkg` {:.no_toc} | ||
|
||
If you installed the Dart SDK with `dpkg`, | ||
use the `sudo dpkg --purge` command. | ||
|
||
1. Use the `sudo dpkg --purge` command. | ||
|
||
```console | ||
$ sudo dpkg --purge dart | ||
``` | ||
|
||
This removes the configuration files at the same time. | ||
|
||
1. Verify the SDK has been removed. | ||
|
||
```console | ||
$ dpkg -l | grep dart | ||
``` | ||
|
||
[sudo]: https://www.sudo.ws/ |
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 was deleted.
Oops, something went wrong.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.