From b787e4283e5c57f938cbc81867c6dbc3133da3ba Mon Sep 17 00:00:00 2001 From: Miguel Elias <20932346+memachado@users.noreply.github.com> Date: Wed, 18 Oct 2023 00:43:18 -0300 Subject: [PATCH 1/2] Update desktop-environment.md This addition offers users a more comprehensive solution for removing KDE and its associated packages. This enhancement aims to provide clearer and more user-friendly instructions for managing desktop environments on Pop!_OS. --- content/desktop-environment.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/desktop-environment.md b/content/desktop-environment.md index e89f6a2958..313ea28c43 100644 --- a/content/desktop-environment.md +++ b/content/desktop-environment.md @@ -238,5 +238,7 @@ sudo apt autoremove --purge ... For example, to remove KDE: ```bash +sudo apt purge kde-* + sudo apt autoremove --purge kde-standard ``` From f7ec9289fb9f4d9283a4a91c94dbc7fb0f14855b Mon Sep 17 00:00:00 2001 From: Jacob Kauffmann Date: Fri, 20 Oct 2023 17:18:41 -0600 Subject: [PATCH 2/2] Split regex from normal autoremove and add explanation --- content/desktop-environment.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/desktop-environment.md b/content/desktop-environment.md index 313ea28c43..83d31888b1 100644 --- a/content/desktop-environment.md +++ b/content/desktop-environment.md @@ -23,7 +23,7 @@ Pop!\_OS and Ubuntu both include the GNOME desktop environment by default. A des You can install an alternative desktop environment using the instructions below. -**NOTE:** be careful when installing other desktop environments, as they may affect the default GNOME desktop (both Ubuntu and Pop). +> **Warning:** Installing other desktop environments may affect the visual style and functionality of the default GNOME desktop (on both Ubuntu and Pop!_OS). If you run into trouble while using an alternative desktop environment, you may wish to revert to the default environment. To ensure the default GNOME desktop environment is installed in Pop!\_OS, install the `pop-desktop` package: @@ -229,16 +229,16 @@ gsettings set org.cinnamon.desktop.lockdown disable-lock-screen false ### Removing Desktop Environments -If you no longer want to use a desktop environment, it can be removed by using: +If you no longer want to use a desktop environment, it can be removed by using the `sudo apt autoremove --purge` command with the name of the package you originally installed. For example, if you installed LXDE with `sudo apt install lxde`, you can remove it using the following command: ```bash -sudo apt autoremove --purge ... +sudo apt autoremove --purge lxde ``` -For example, to remove KDE: +Some desktop environments (such as KDE) may leave behind additional packages even after uninstalling the original package with the `autoremove` command. To more thoroughly remove packages related to a desktop environment, use a regular expression to remove all packages beginning with the name of the environment followed by a hyphen (for example, `kde-`): -```bash -sudo apt purge kde-* +> **Warning:** Because regular expressions can match packages you don't expect, inspect the list of packages being removed before confirming the operation, and be prepared to reinstall any packages you wish to keep afterwards. -sudo apt autoremove --purge kde-standard +```bash +sudo apt autoremove --purge 'name?(^kde-)' ```