Page 1 of 1

How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 7:10 pm
by keos
Hello,

My system always grows and grows over time, because of the amount of things I install and uninstall -- I already have 42% space taken up on MX-23, recently installed, and I don't know how to really clean it up. No, no videos or music are installed.

Neither mx-cleanup, nor bleachbit with all its options enabled, not even deleting all configuration files in thunar as #, nothing works for me:

Code: Select all

root@kaos:~# locate crossover
/etc/crossover.conf
/home/keos/.local/share/applications/menu-xdg/X-Debian-CrossOver-crossover.desktop
/home/keos/.local/share/desktop-directories/menu-xdg/debian-crossover.directory
/home/keos/Downloads/crossover_23.0.0-1.deb
/root/crossover.deb
/root/crossover.deb.1
/usr/share/applications/cxassoc-cxoffice-0:application_x-crossover-cxarchive::restore.desktop
/usr/share/applications/cxassoc-cxoffice-0:application_x-crossover-exe::install.desktop
/usr/share/applications/cxassoc-cxoffice-0:application_x-crossover-exe::run.desktop
/usr/share/applications/cxassoc-cxoffice-0:application_x-crossover-lnk::run.desktop
/usr/share/applications/cxassoc-cxoffice-0:application_x-crossover-msi::install.desktop
/usr/share/applications/cxassoc-cxoffice-1:application_x-crossover-c4p::install.desktop
/usr/share/applications/cxassoc-cxoffice-1:application_x-crossover-tie::install.desktop
/usr/share/doc/crossover
/usr/share/doc-base/crossover
/usr/share/icons/Papirus/16x16/apps/crossover.svg
/usr/share/icons/Papirus/16x16/apps/cxmenu-cxoffice-0-crossover.svg
/usr/share/icons/Papirus/16x16/apps/deepin-crossover.svg
/usr/share/icons/Papirus/22x22/apps/crossover.svg
/usr/share/icons/Papirus/22x22/apps/cxmenu-cxoffice-0-crossover.svg
/usr/share/icons/Papirus/22x22/apps/deepin-crossover.svg
/usr/share/icons/Papirus/24x24/apps/crossover.svg
/usr/share/icons/Papirus/24x24/apps/cxmenu-cxoffice-0-crossover.svg
/usr/share/icons/Papirus/24x24/apps/deepin-crossover.svg
/usr/share/icons/Papirus/32x32/apps/crossover.svg
/usr/share/icons/Papirus/32x32/apps/cxmenu-cxoffice-0-crossover.svg
/usr/share/icons/Papirus/32x32/apps/deepin-crossover.svg
/usr/share/icons/Papirus/48x48/apps/crossover.svg
/usr/share/icons/Papirus/48x48/apps/cxmenu-cxoffice-0-crossover.svg
/usr/share/icons/Papirus/48x48/apps/deepin-crossover.svg
/usr/share/icons/Papirus/64x64/apps/crossover.svg
/usr/share/icons/Papirus/64x64/apps/cxmenu-cxoffice-0-crossover.svg
/usr/share/icons/Papirus/64x64/apps/deepin-crossover.svg
/usr/share/icons/hicolor/128x128/apps/cxmenu-cxoffice-0-crossover.png
/usr/share/icons/hicolor/16x16/apps/cxmenu-cxoffice-0-crossover.png
/usr/share/icons/hicolor/256x256/apps/cxmenu-cxoffice-0-crossover.png
/usr/share/icons/hicolor/32x32/apps/cxmenu-cxoffice-0-crossover.png
/usr/share/icons/hicolor/64x64/apps/cxmenu-cxoffice-0-crossover.png
/usr/share/lintian/overrides/crossover
/usr/share/mime/application/x-crossover-c4p.xml
/usr/share/mime/application/x-crossover-cxarchive.xml
/usr/share/mime/application/x-crossover-exe.xml
/usr/share/mime/application/x-crossover-lnk.xml
/usr/share/mime/application/x-crossover-msi.xml
/usr/share/mime/application/x-crossover-tie.xml
/var/lib/dpkg/info/crossover.list
/var/lib/dpkg/info/crossover.md5sums
/var/lib/dpkg/info/crossover.postinst
/var/lib/dpkg/info/crossover.postrm
/var/lib/dpkg/info/crossover.preinst
/var/lib/dpkg/info/crossover.prerm
/var/lib/menu-xdg/applications/menu-xdg/X-Debian-CrossOver-crossover.desktop
/var/lib/menu-xdg/desktop-directories/menu-xdg/debian-crossover.directory
root@kaos:~# locate playonlinux
/usr/share/icons/Papirus/16x16/apps/org.phoenicis.playonlinux.svg
/usr/share/icons/Papirus/16x16/apps/playonlinux.svg
/usr/share/icons/Papirus/16x16/apps/playonlinux4.svg
/usr/share/icons/Papirus/22x22/apps/org.phoenicis.playonlinux.svg
/usr/share/icons/Papirus/22x22/apps/playonlinux.svg
/usr/share/icons/Papirus/22x22/apps/playonlinux4.svg
/usr/share/icons/Papirus/24x24/apps/org.phoenicis.playonlinux.svg
/usr/share/icons/Papirus/24x24/apps/playonlinux.svg
/usr/share/icons/Papirus/24x24/apps/playonlinux4.svg
/usr/share/icons/Papirus/32x32/apps/org.phoenicis.playonlinux.svg
/usr/share/icons/Papirus/32x32/apps/playonlinux.svg
/usr/share/icons/Papirus/32x32/apps/playonlinux4.svg
/usr/share/icons/Papirus/48x48/apps/org.phoenicis.playonlinux.svg
/usr/share/icons/Papirus/48x48/apps/playonlinux.svg
/usr/share/icons/Papirus/48x48/apps/playonlinux4.svg
/usr/share/icons/Papirus/64x64/apps/org.phoenicis.playonlinux.svg
/usr/share/icons/Papirus/64x64/apps/playonlinux.svg
/usr/share/icons/Papirus/64x64/apps/playonlinux4.svg
/usr/share/mx-packageinstaller-pkglist/playonlinux.pm
root@kaos:~# locate bottle
/usr/share/icons/Papirus/16x16/apps/bottles_notepad.svg
/usr/share/icons/Papirus/16x16/apps/bottles_wine-uninstaller.svg
/usr/share/icons/Papirus/16x16/apps/bottles_wine-winecfg.svg
/usr/share/icons/Papirus/16x16/apps/bottles_wine.svg
/usr/share/icons/Papirus/16x16/apps/bottles_winetricks.svg
/usr/share/icons/Papirus/16x16/apps/com.github.mirkobrombin.bottles.svg
/usr/share/icons/Papirus/16x16/apps/com.usebottles.bottles.svg
/usr/share/icons/Papirus/22x22/apps/bottles_notepad.svg
/usr/share/icons/Papirus/22x22/apps/bottles_wine-uninstaller.svg
/usr/share/icons/Papirus/22x22/apps/bottles_wine-winecfg.svg
/usr/share/icons/Papirus/22x22/apps/bottles_wine.svg
/usr/share/icons/Papirus/22x22/apps/bottles_winetricks.svg
/usr/share/icons/Papirus/22x22/apps/com.github.mirkobrombin.bottles.svg
/usr/share/icons/Papirus/22x22/apps/com.usebottles.bottles.svg
/usr/share/icons/Papirus/24x24/apps/bottles_notepad.svg
/usr/share/icons/Papirus/24x24/apps/bottles_wine-uninstaller.svg
/usr/share/icons/Papirus/24x24/apps/bottles_wine-winecfg.svg
/usr/share/icons/Papirus/24x24/apps/bottles_wine.svg
/usr/share/icons/Papirus/24x24/apps/bottles_winetricks.svg
/usr/share/icons/Papirus/24x24/apps/com.github.mirkobrombin.bottles.svg
/usr/share/icons/Papirus/24x24/apps/com.usebottles.bottles.svg
/usr/share/icons/Papirus/32x32/apps/bottles_notepad.svg
/usr/share/icons/Papirus/32x32/apps/bottles_wine-uninstaller.svg
/usr/share/icons/Papirus/32x32/apps/bottles_wine-winecfg.svg
/usr/share/icons/Papirus/32x32/apps/bottles_wine.svg
/usr/share/icons/Papirus/32x32/apps/bottles_winetricks.svg
/usr/share/icons/Papirus/32x32/apps/com.github.mirkobrombin.bottles.svg
/usr/share/icons/Papirus/32x32/apps/com.usebottles.bottles.svg
/usr/share/icons/Papirus/48x48/apps/bottles_notepad.svg
/usr/share/icons/Papirus/48x48/apps/bottles_wine-uninstaller.svg
/usr/share/icons/Papirus/48x48/apps/bottles_wine-winecfg.svg
/usr/share/icons/Papirus/48x48/apps/bottles_wine.svg
/usr/share/icons/Papirus/48x48/apps/bottles_winetricks.svg
/usr/share/icons/Papirus/48x48/apps/com.github.mirkobrombin.bottles.svg
/usr/share/icons/Papirus/48x48/apps/com.usebottles.bottles.svg
/usr/share/icons/Papirus/64x64/apps/bottles_notepad.svg
/usr/share/icons/Papirus/64x64/apps/bottles_wine-uninstaller.svg
/usr/share/icons/Papirus/64x64/apps/bottles_wine-winecfg.svg
/usr/share/icons/Papirus/64x64/apps/bottles_wine.svg
/usr/share/icons/Papirus/64x64/apps/bottles_winetricks.svg
/usr/share/icons/Papirus/64x64/apps/com.github.mirkobrombin.bottles.svg
/usr/share/icons/Papirus/64x64/apps/com.usebottles.bottles.svg
/usr/share/projectM/presets/presets_bltc201/fiShbRaiN - lost in the bottle.milk
/usr/share/projectM/presets/presets_tryptonaut/fiShbRaiN - lost in the bottle.milk
root@kaos:~# 

This was just today...

Is there a way to delete, if not all, at least a considerable portion of all that, other than having to go one by one... if I could at least know which are the ones that take up the most space...


Thanks for any advice.

Code: Select all

System:
  Kernel: 6.1.0-11-amd64 [6.1.38-4] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-11-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23_x64 Libretto June 15  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Laptop System: Dell product: Inspiron 3583 v: N/A serial: <superuser required> Chassis:
    type: 10 serial: <superuser required>
  Mobo: Dell model: 0WHCP7 v: A00 serial: <superuser required> UEFI: Dell v: 1.5.1
    date: 05/30/2019
Battery:
  ID-1: BAT0 charge: 39.9 Wh (100.0%) condition: 39.9/42.0 Wh (95.0%) volts: 12.6 min: 11.4
    model: SMP DELL VM73283 type: Li-poly serial: <filter> status: full
CPU:
  Info: model: Intel Core i5-8265U bits: 64 type: MT MCP arch: Comet/Whiskey Lake note: check
    gen: core 8 level: v3 note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF6
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 800 min/max: 400/3900 scaling: driver: intel_pstate governor: powersave
    cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 bogomips: 28800
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Vulnerable: No microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW
    sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Dell driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1 empty: HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:3ea0 class-ID: 0300
  Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-6:3
    chip-ID: 0bda:5520 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99") s-diag: 414mm (16.31")
  Monitor-1: eDP-1 model: AU Optronics 0x10ec built: 2017 res: 1366x768 hz: 60 dpi: 101
    gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:9dc8
    class-ID: 0403
  API: ALSA v: k6.1.0-11-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: off with: 1: pipewire-pulse status: off 2: wireplumber
    status: off tools: pw-cat,pw-cli,wpctl
  Server-2: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 238.47 GiB used: 16.39 GiB (6.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN520 NVMe WDC 256GB
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD
    serial: <filter> rev: 20200012 temp: 44.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 44.69 GiB size: 43.68 GiB (97.76%) used: 16.37 GiB (37.5%) fs: ext4
    dev: /dev/nvme0n1p4 maj-min: 259:4
  ID-2: /boot/efi raw-size: 1.43 GiB size: 1.43 GiB (99.80%) used: 18.6 MiB (1.3%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 3 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
Sensors:
  System Temperatures: cpu: 53.0 C pch: 48.0 C mobo: 38.0 C
  Fan Speeds (RPM): cpu: 0
Repos:
  Packages: pm: dpkg pkgs: 2584 libs: 1453 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security/ bookworm-security non-free contrib main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  No active apt repos in: /etc/apt/sources.list.d/librewolf.list
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://www.gtlib.gatech.edu/pub/MX-Linux/workspace/mx/repo/ bookworm non-free main
  No active apt repos in: /etc/apt/sources.list.d/spotify.list
  Active apt repos in: /etc/apt/sources.list.d/yandex-browser.list
    1: deb [arch=amd64] https://repo.yandex.ru/yandex-browser/deb/ stable main
  No active apt repos in: /etc/apt/sources.list.d/yandex-stable.list
Info:
  Processes: 247 Uptime: 1m wakeups: 2 Memory: 7.63 GiB used: 1.38 GiB (18.0%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  clang: 14.0.6 Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 7:17 pm
by Charlie Brown
keos wrote: Sun Sep 03, 2023 7:10 pm... if I could at least know which are the ones that take up the most space...
"Disk Usage Analyzer" from menu.

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 7:18 pm
by j2mcgreg
QSI please.

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 7:19 pm
by CharlesV
The first thing ( imo ) is to figure out where your space is being taken up. This can range from old kernels, unmanaged timeshift snapshots, all the way to files that were copied incorrectly / in unknown locations.

If you install QDirStat (MXPI) and then run it on each drive, you will see where / what on each drive is taking up space. Then you can figure out what to do.

And, personally, I have found that stacer (also in mxpi ) is a great utility to clear both show and clear our caches, temp files etc . BUT ... use QDirStat first and see where your space is being eaten up, it may not be where you think!

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 7:41 pm
by keos
I just don't understand in detail what is output from 'usr'... many libraries, incomprehensible for me...
Screenshot_2023-09-03_19-38-20.png

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 8:10 pm
by siamhie
keos wrote: Sun Sep 03, 2023 7:41 pm I just don't understand in detail what is output from 'usr'... many libraries, incomprehensible for me...

What does it show for your home folder?

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 8:12 pm
by timkb4cq
Perhaps a more visual tool would help.
I find Konqueror's File Size View helpful in locating the larger folders & files.
Screenshot_2023-09-03_20-10-53.png

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 8:30 pm
by CharlesV
keos wrote: Sun Sep 03, 2023 7:41 pm I just don't understand in detail what is output from 'usr'... many libraries, incomprehensible for me...
As a general rule, you should not be removing anything in that /usr/lib area unless you really KNOW what it is.

You can run the following to remove unused lib's that are hanging around:
sudo apt autoremove


but you should focus on your home folder and below that normally. ( timeshift and other backup's might also use some space. But an almost clean MX 23 install is approx 6gb /usr and lower folders.

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 8:55 pm
by uncle mark
You've got a 256G drive, but it looks like you're only using 45G for your MX install, without a separate /home partition. Your MX setup is using 16G total. Doesn't seem too out of line to me.

Drives:
Local Storage: total: 238.47 GiB used: 16.39 GiB (6.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN520 NVMe WDC 256GB
size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD
serial: <filter> rev: 20200012 temp: 44.9 C scheme: GPT
Partition:
ID-1: / raw-size: 44.69 GiB size: 43.68 GiB (97.76%) used: 16.37 GiB (37.5%) fs: ext4
dev: /dev/nvme0n1p4 maj-min: 259:4

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 9:44 pm
by m_pav
keos wrote: Sun Sep 03, 2023 7:41 pm I just don't understand in detail what is output from 'usr'... many libraries, incomprehensible for me...
Repeat the same process that took you to the screenshot you provided, then click the arrow at the top left of the apps toolbar as many times as necessary until you see This Computer. Click your / partition and the graph will be redrawn to include your /home folder. You can investigate what you see therein, if you need to.

For homedirs that unexpectedly get pout of hand, it's usually a fault with Wine or something else that causes the hidden ~/.xsession-errors file to receive multiple additional entries per hour, causing it to grow quickly and sometimes create multiple new versions of itself.

Re: How to do an optimal cleaning of the system?

Posted: Sun Sep 03, 2023 11:46 pm
by Arnox
CharlesV wrote: Sun Sep 03, 2023 7:19 pm The first thing ( imo ) is to figure out where your space is being taken up. This can range from old kernels, unmanaged timeshift snapshots, all the way to files that were copied incorrectly / in unknown locations.

If you install QDirStat (MXPI) and then run it on each drive, you will see where / what on each drive is taking up space. Then you can figure out what to do.

And, personally, I have found that stacer (also in mxpi ) is a great utility to clear both show and clear our caches, temp files etc . BUT ... use QDirStat first and see where your space is being eaten up, it may not be where you think!
Wouldn't MX Cleanup be pretty good as well? It won't take care of everything, but it shouldn't definitely take care of the basic stuff like unused kernels and the like.

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 12:08 am
by CharlesV
Well.. while I will say yes, I have found that I can do a clean up with MX Cleanup .. and then immediately do a stacer clean up and it always finds more to clean up. (not a lot more, but always more. ) Could be on me, but I have tried to set everything in Mx Cleanup to clean everything.

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 2:59 am
by m_pav
MX Cleanup works great on the categories listed within the app, but it doesn't go beyond them to the likes of Chromium based browsers, not too sure if it does anything with the likes of waterfox or browsers based on or forked Firefox.

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 4:12 am
by MXMUX
I believe Charlie Brown hit the nail on the head. Find out what is packing the suitcase.

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 6:32 am
by keos
Screenshot_2023-09-04_06-20-00.png
Screenshot_2023-09-04_06-28-46.png
EDIT:

In case someone requires more information, 'caissabase' is a Chess database, but to go deeper into the matter:

Here in MX-23, as I said before, I have 42% of the space occupied. I insist on saying that I think this is because I am always installing and uninstalling programs.

In MX-21, which is not the one I use frequently, I have just 25% of the space occupied, with the same programs as here, with wine and everything else, identical to MX-23. :confused:

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 11:20 am
by CharlesV
It is very possible that your installing and uninstalling is using both cache as well as leaving some dependencies behind. Using stacer, I routinely clean up "another 400mb to over a gb of program or apt cache." .

Additionally, if you have installed additional kernels, or kernels have been updated, you will most likely have some of those around as well. ( plus the images the system builds for them too.)

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 12:13 pm
by MXRobo
I don't think that MX-Cleanup clears my Spotify .cache – which can get very large;
that - or I clean it using Disk Usage Analyzer so frequently that MX-Cleanup "misses" it.

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 12:54 pm
by keos
Well a little more clean but ...
Screenshot_2023-09-04_12-47-05.png

Code: Select all

keos@kaos:~
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           782M  2.9M  779M   1% /run
/dev/nvme0n1p4   44G   18G   25G  42% /
tmpfs           5.0M   12K  5.0M   1% /run/lock
tmpfs           1.6G   80M  1.5G   6% /dev/shm
/dev/nvme0n1p1  1.5G   19M  1.5G   2% /boot/efi
cgroup           12K     0   12K   0% /sys/fs/cgroup
tmpfs           782M  4.0K  782M   1% /run/user/107
tmpfs           782M   16K  782M   1% /run/user/1000
keos@kaos:~
$ 


No the kernels/images I always remove all of that ...

Re: How to do an optimal cleaning of the system?

Posted: Mon Sep 04, 2023 8:12 pm
by m_pav
You very well may have many leftovers from installing an dumping packages. I hate trying software on my daily driver, I usually use VM's to do that, but on the odd occasion where an app is highly dependent or direct hardware access or I need to evaluate it for performance, I sometimes have to mess with my daily driver.
I am VERY cautions about this and I take a screenshot of the app history as presented through right clicking the updater icon to ensure I can purge any element of its existence from my machine if I do not wish to keep it.

Re: How to do an optimal cleaning of the system?

Posted: Fri Sep 08, 2023 12:13 pm
by keos
One question...When you have to delete a file in the system, do you delete the content(s) first, or do you just remove the file in question? Thank you.

Re: How to do an optimal cleaning of the system?

Posted: Fri Sep 08, 2023 12:17 pm
by j2mcgreg
keos wrote: Fri Sep 08, 2023 12:13 pm One question...When you have to delete a file in the system, do you delete the content(s) first, or do you just remove the file in question? Thank you.
Delete the file.

Re: How to do an optimal cleaning of the system?

Posted: Fri Sep 08, 2023 6:12 pm
by davidy
I tried bleachbit but found it to be useless overall. It might be good for those who play lots of games or browse questionable sites regularly but for the most part it's a worthless program for anyone who keeps their browsers and their work clean. In windows it's mandatory oth. I just set mx cleanup how I like and choose 'at reboot' to keep it simple. 'sudo apt autoremove' I use regularly whenever I remove packages and suspect there may be leftovers. Most times it finds nothing. All in all MX is a clean OS and that's the way linux should be. As well, I keep all actual data and backups, documents etc on a completely separate drive so that when I do a clonezilla backup it is as small as possible. Right now they are ~39Gb uncompressed for speed. No games or any special softwares installed either. I even placed my xnview db on my 2nd drive as it is huge at over 32Gb of thumbnails. Default was home-nope.

Re: How to do an optimal cleaning of the system?

Posted: Sat Sep 09, 2023 6:47 am
by keos
Well, I think that then you have, compared to mine, '41%', much more space occupied than I do in MX-23, since I have wine installed, as well as programs like e-sword and chess, and the 'downloads' with information/data on biblical matters and chess and two browsers -- then I shouldn't be surprised, if, it weren't for the fact that I have the same thing installed in MX-21 with much less space occupied, (I must have been doing something very wrong in MX-23 that still I don't know what it could be -- since it's the one I use the most). :confused: :turtle:

EDIT: Bleachbit in my case es very good!.

Re: How to do an optimal cleaning of the system?

Posted: Sat Sep 09, 2023 11:43 am
by BitterTruth
Do you download/test any isos? I have some and each one is about 2-3gb sometimes 4gb.

Re: How to do an optimal cleaning of the system?

Posted: Fri Sep 15, 2023 7:21 am
by keos
@j2mcgreg

I have a file that I had not seen before, it is called 'swapfile', it is 3GB, can it be deleted?. Thanks.