Dietpi-software uninstall leaves stuff behind

Not sure where to post this here or github but since it might be functioning normally I will start here.

I installed lxde and nomachine and firefoxb and then a couple weeks later (today) I uninstalled everything with dietpi-software but not everything was removed.
For instance the xserver is still there in one piece (can be called with startx) and a bunch of stuff in my ~/ directory.
Is this what was expected from the uninstall command?
Do I need to run apt-get remove xserver-xorg-core or some such thing too?

dietpi@DietPi:~$ ls -la
total 80
drwxr-xr-x 9 dietpi dietpi  4096 Feb 21 14:01 .
drwxr-xr-x 3 root   root    4096 Dec 31 16:09 ..
-rw------- 1 dietpi dietpi 11408 Feb 21 13:54 .bash_history
-rw-r--r-- 1 dietpi dietpi   220 Apr 23  2023 .bash_logout
-rw-r--r-- 1 dietpi dietpi   571 Dec 31 16:09 .bashrc
drwx------ 7 dietpi dietpi  4096 Feb 21 13:49 .cache
drwx------ 6 dietpi dietpi  4096 Feb 21 13:49 .config
drwxr-xr-x 2 dietpi dietpi  4096 Feb 11 15:07 Desktop
-rw-r--r-- 1 dietpi dietpi   146 Feb 11 15:07 .gtk-bookmarks
-rw------- 1 dietpi dietpi    20 Feb 13 08:42 .lesshst
drwx------ 3 dietpi dietpi  4096 Feb  1 18:29 .local
-rw-r--r-- 1 dietpi dietpi  6013 Jan 28 11:10 motioneye.log
drwx------ 2 dietpi dietpi  4096 Feb 11 15:08 NoMachine
drwxr-xr-x 8 dietpi dietpi  4096 Feb 11 15:17 .nx
-rw-r--r-- 1 dietpi dietpi   161 Dec 31 16:09 .profile
drwx------ 2 dietpi dietpi  4096 Feb 11 15:08 .qt
-rw------- 1 dietpi dietpi     0 Feb 21 14:01 .Xauthority
-rw------- 1 dietpi dietpi   653 Feb 11 15:07 .xsession-errors

Can you check via ‘apt update’ whether there are packages to be removable via ‘apt autoremove’?
If yes, you will get a hint about that.

1 Like

@StephanStS Yes, that did the trick. Thanks

The X server can be uninstalled separately. It can be required for other things, hence is not uninstalled when you uninstall a desktop.

We can add the ~/NoMachine directory to the uninstall code. I didn’t know that one. What is inside?

Ha, I never looked until now. It is completely empty.

1 Like

This should do it: v9.2 · MichaIng/DietPi@6c39b12 · GitHub

1 Like