
1. Install linux mint xfce
then in terminal
$ sudo apt update
$ sudo apt dist-upgrade
$ sudo apt install kde-standard
boot into kde
------------------------------------------------------------------
2. Remove XFCE
This command line will list all packages with xfce in their names, take only the package names, and feed those package names in to a special apt-get purge command line. This way you do not need to remove every one of those 50+ package names one by one.
$ dpkg -l | grep .xfce4. | xargs sudo apt-get purge --auto-remove --yes
Some explanations:
dpkg -l lists all installed packages
grep .xfce. filters so that only packages with keyword xfce within their names listed
xargs changes multiple line input from previous command to be single line input for next command
sudo apt-get purge removes listed packages from input
--auto-remove tries to remove dependency packages too
--yes makes apt-get automatically answers yes for everything
For troubleshooting purpose, you can add one more pipeline command at the end | tee --append removal.txt to record the whole removal process in a plain text named removal.txt.
-------------------------------------------------------------
3. Final Check
This command should show nothing if it's true that all XFCE components were successfully removed.
$ dpkg -l | grep .xfce.
--------------------------------------------------------------
4. Synaptec
Open Synaptic Package Manager
search for xfce
remove all installed entries
--------------------------------------------------------------
5. Try to logout and check whether XFCE session doesn't exist anymore from session choice menu.