-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #711 from ldennington/add-uninstall-from-source-in…
…structions install-from-source: add instructions to uninstall
- Loading branch information
Showing
3 changed files
with
88 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Uninstalling after installing from source | ||
|
||
These instructions will guide you in removing GCM after running the [install from source script](../src/linux/Packaging.Linux/install-from-source.sh) on your Linux distribution. | ||
|
||
:siren: PROCEED WITH CAUTION :siren: | ||
|
||
For completeness, we provide uninstall instructions for _the GCM application, the GCM repo, and the maximum number of dependencies*_ for all distributions. This repo and these dependencies may or may not have already been present on your system when you ran the install from source script, and uninstalling them could impact other programs and/or your normal workflows. Please keep this in mind when following the instructions below. | ||
|
||
*Certain distributions require some dependencies of the script to function as expected, so we only include instructions to remove the non-required dependencies. | ||
|
||
## All distributions | ||
|
||
**Note:** If you ran the install from source script from a pre-existing clone of the `git-credential-manager` repo or outside of your `$HOME` directory, you will need to modify the final two commands below to point to the location of your pre-existing clone or the directory from which you ran the install from source script. | ||
|
||
```console | ||
git-credential-manager-core unconfigure && | ||
sudo rm $(command -v git-credential-manager-core) && | ||
sudo rm -rf /usr/local/share/gcm-core && | ||
sudo rm -rf ~/git-credential-manager && | ||
sudo rm ~/install-from-source.sh | ||
``` | ||
|
||
## Debian/Ubuntu | ||
|
||
**Note:** If you had a pre-existing installation of dotnet that was not installed via `apt` or `apt-get` when you ran the install from source script, you will need to remove it using [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-linux#uninstall-net) and remove `dotnet-*` from the below command. | ||
|
||
```console | ||
sudo apt remove dotnet-* dpkg-dev apt-transport-https git curl wget | ||
``` | ||
|
||
## Linux Mint | ||
|
||
**Note:** If you had a pre-existing installation of dotnet when you ran the install from source script that was not located at `~/.dotnet`, you will need to modify the first command below to point to the custom install location. If you would like to remove the specific version of dotnet that the script installed and keep other versions, you can do so with [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-linux#uninstall-net). | ||
|
||
```console | ||
sudo rm -rf ~/.dotnet && | ||
sudo apt remove git curl | ||
``` | ||
|
||
## Fedora/CentOS/RHEL | ||
|
||
**Note:** If you had a pre-existing installation of dotnet when you ran the install from source script that was not located at `~/.dotnet`, you will need to modify the first command below to point to the custom install location. If you would like to remove the specific version of dotnet that the script installed and keep other versions, you can do so with [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-linux#uninstall-net). | ||
|
||
```console | ||
sudo rm -rf ~/.dotnet | ||
``` | ||
|
||
## Alpine | ||
|
||
**Note:** If you had a pre-existing installation of dotnet when you ran the install from source script that was not located at `~/.dotnet`, you will need to modify the first command below to point to the custom install location. If you would like to remove the specific version of dotnet that the script installed and keep other versions, you can do so with [these instructions](https://docs.microsoft.com/en-us/dotnet/core/install/remove-runtime-sdk-versions?pivots=os-linux#uninstall-net). | ||
|
||
```console | ||
sudo rm -rf ~/.dotnet && | ||
sudo apk del icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib which bash coreutils gcompat git curl | ||
``` |