how would i uninstall kde plasma DE as im using xfce but not uninstall the tools (iso image writer etc etc) on arch
Assistant
To uninstall KDE Plasma Desktop Environment (DE) from your Arch Linux system while keeping the associated applications (like ISO image writers, etc.), you can follow these steps. The general idea is to remove the Plasma DE and related packages but retain any KDE apps you want to keep.
Step 1: Identify Installed Packages
First, you want to identify the KDE packages you have installed. You can use the following command to list them:
bash
pacman -Q | grep kde
This will show you all packages with "kde" in their names. You can also look for Plasma-specific packages by searching for "plasma":
bash
pacman -Q | grep plasma
Step 2: Remove Plasma Desktop Environment
The standard way to uninstall KDE Plasma is to remove the plasma group and any KDE packages that are not needed. You can use the following command:
bash
sudo pacman -Rns plasma
This command will remove the Plasma desktop environment and any dependencies that are not used by other installed packages.
Step 3: Keep Useful KDE Applications
If you have specific KDE applications that you want to keep (like kde-applications, dolphin, etc.), make sure to specify those applications to exclude them from being removed. You can use the --noconfirm flag to prevent prompts and confirm uninstallation. For example:
Replace kde-applications,dolphin with the actual names of KDE packages you want to keep.
Step 4: Remove KDE Configuration Files
To clean up old configuration files, you might want to look in your home directory for any ~/.kde or ~/.config/plasma* directories and remove them if you no longer need them:
bash
rm -rf ~/.kde
rm -rf ~/.config/plasma*
Step 5: Cleanup and Reboot
After uninstalling, it's a good idea to clean up orphaned packages (packages that were installed as dependencies but are no longer required):
bash
sudo pacman -Rns $(pacman -Qdtq)
Finally, reboot your system to ensure that all changes take effect.
Summary
List your installed KDE and Plasma packages.
Remove KDE Plasma with pacman, excluding any applications you want to keep.
Optionally remove configuration files.
Clean up orphaned packages and reboot.
By using the above steps, you'll be able to uninstall KDE Plasma while keeping the necessary tools you wish to retain. Remember to verify the exact package names to use in the exclude step based on what you actually have installed.