Rancher Desktop needs an uninstallation process #1074
Replies: 6 comments 5 replies
-
This discussion was created by converting issue #1066 into a discussion. The above text is the body of that issue. After some discussion with the team, it was determined that there are more things to think about than dangling symlinks when uninstalling Rancher Desktop. Jan brought up the fact that the data volume, which can contain a great deal of data, is also left behind when RD is uninstalled. The ideal way to address this issue would be to create any resources RD needs at install time, and to remove any resources pertaining to it at uninstall time. The mechanism I have in mind for this is install/uninstall scripts as are present in .deb/.rpm packages. However, this is not an option because:
There are two other possibilities that were brought up:
There may be other paths we can take. What do you all think? |
Beta Was this translation helpful? Give feedback.
-
An uninstallation process across platforms would be great. But, it's not a hard requirement for 1.0. Many apps don't uninstall data when they are removed. I've experienced this on Mac, Windows, and Linux. Though, I think Windows does a better job cleaning up with uninstallers accessible via Add/Remove programs. When we do provide better cleanup we can implement it differently per platform and add it one platform at a time. |
Beta Was this translation helpful? Give feedback.
-
Fwiw, we generally use Another thing it could do is be |
Beta Was this translation helpful? Give feedback.
-
Coming back to this now, I feel I have more clarity about it. For simplicity's sake, the uninstall process should be as cross-platform as possible. That means that we cannot depend on any package manager or installer wizard to do uninstallation, since those things are not present for every format we distribute RD in. For example, the AppImage version of RD is just a file the user makes executable and runs. I think that the simplest uninstallation process is:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
How can I perform a clean uninstall of Rancher Desktop? will this help? Factory reset and then uninstall Rancher Desktop? |
Beta Was this translation helpful? Give feedback.
-
Rancher Desktop Version
0.7.0-beta
Rancher Desktop K8s Version
N/A
What operating system are you using?
Other Linux
Operating System / Build Version
Pop OS 20.04
What CPU architecture are you using?
x64
Windows User Only
No response
Actual Behavior
The symlinks in ~/.local/bin for things like
kubectl
andhelm
are left behind after Rancher Desktop is uninstalled, pointing to nonexistent files in /opt. Seen on Pop OS but this is probably is an issue on more than just Linux.Steps to Reproduce
kubectl
works, and points to the file it is supposed to in /opt/rancher-desktopls -l ~/.local/bin/kubectl
, notice how it is a broken symlinkResult
Symlinks are broken and left behind upon uninstall.
Expected Behavior
Symlinks should be removed so as not to clutter the system. There are a few ways to do this but we should discuss this issue in order to figure out what the best way is.
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions