Sudo pacman -Rns (pacman -Qtdq) deletes almost everything

Hello,
I'm having trouble with the cleanup command A.K.A sudo pacman -Rns (pacman -Qtdq)

It is removing stuff it shouldn't. Its as if pacman forgot the dependencies or forgot what was explicitly installed

cleanup
checking dependencies...
:: apr-util optionally requires mariadb-libs: enable mysql/mariadb support
:: apr-util optionally requires postgresql-libs: enable postgres support
:: autorandr optionally requires zsh-completions: auto-completion for autorandr in ZSH
:: bashtop optionally requires python-psutil: use python for data collection
:: btrfs-assistant optionally requires btrfsmaintenance
:: code optionally requires zsh-completions: ZSH completitons
:: corectrl optionally requires mesa-utils: For glxinfo
:: find-the-command-git optionally requires pacman-contrib: for weekly pacman-filesdb-refresh.timer
:: find-the-command-git optionally requires sudo: helpful for privilege elevation
:: fzf optionally requires vim: plugin
:: fzf optionally requires zsh: zsh keybindings
:: gnutls optionally requires guile: for use with Guile bindings
:: grub optionally requires libisoburn: Provides xorriso for generating grub rescue iso using grub-mkrescue
:: imagemagick optionally requires djvulibre: DJVU support
:: imlib2 optionally requires libspectre: PS loader
:: jxrlib optionally requires java-runtime: Java bindings
:: kate optionally requires clang: C and C++ LSP support
:: libbluray optionally requires java-runtime: BD-J library
:: libinput optionally requires python-pyudev: libinput measure
:: libjpeg-turbo optionally requires java-runtime>11: for TurboJPEG Java wrapper
:: libjxl optionally requires java-runtime: for JNI bindings
:: libreoffice-fresh optionally requires java-runtime: adds java support
:: libreoffice-fresh optionally requires postgresql-libs: for postgresql-connector
:: libreoffice-fresh optionally requires mariadb-libs: for mysql-connector
:: powerdevil optionally requires kinfocenter: for the Energy Information KCM
:: python-fonttools optionally requires python-scipy: for finding wrong contour/component order between different masters
:: python-matplotlib optionally requires python-cairocffi: alternative for Cairo backends
:: python-matplotlib optionally requires texlive-bin: usetex dependencies
:: python-twisted optionally requires python-appdirs: for using conch
:: qt5-base optionally requires postgresql-libs: PostgreSQL driver
:: qt5-base optionally requires mariadb-libs: MariaDB driver
:: qt5-tools optionally requires clang: for qdoc
:: qt6-base optionally requires postgresql-libs: PostgreSQL driver
:: qt6-base optionally requires mariadb-libs: MariaDB driver
:: reflector optionally requires rsync: rate rsync mirrors
:: starship optionally requires ttf-font-nerd: Nerd Font Symbols preset
:: vtk optionally requires mariadb-libs
:: vtk optionally requires postgresql-libs
:: wireguard-tools optionally requires sudo: elevate privileges
:: xorg-xrdb optionally requires mcpp: a lightweight alternative for preprocessing

Packages (327) aha-0.5.1-2  alpm_octopi_utils-1.0.2-3.2  android-tools-33.0.3-3  appstream-glib-0.8.2-1  awesome-terminal-fonts-1.1.0-4  bcprov-1.72-1  beautyline-1:20230127-1  btrfsmaintenance-0.5-2  candy-icons-git-r964.2048a4e-1  cfitsio-1:4.2.0-1  ckbcomp-1.210-1  clang-15.0.7-1  compiler-rt-15.0.7-1
discount-2.2.7.b-1  djvulibre-3.5.28-4  encfs-1.9.5-6  fakeroot-1.30.1-1  ffcall-2.4-2  firedragon-109.0.1-1  flashrom-1.2-4  fvs-0.3.4-1.1  fwupd-1.8.10-1  fwupd-efi-1.4-1  garuda-bash-config-1.0.3-1  garuda-common-settings-2.6.14-1  garuda-hooks-2.9.4-1  garuda-migrations-2.1.2-1
garuda-settings-manager-1.0.2-1  gc-8.2.2-1  gcab-1.5-1  geocode-glib-common-3.26.4-2  glslang-11.13.0-2  gnome-desktop-1:43.1-1  gnome-desktop-common-1:43.1-1  gtk-vnc-1.3.1-1  gtksourceview5-5.6.2-1  guile-3.0.9-1  gvim-9.0.1182-1  hiredis-1.1.0-1  java-commons-lang-3.12.0-1  java-runtime-common-3-5
jre-openjdk-19.0.2.u7-2  jre-openjdk-headless-19.0.2.u7-2  kaccounts-providers-22.12.2-1  kcalendarcore-5.102.0-1  kcolorpicker-0.2.0-1  kdeplasma-addons-5.26.5-1  kernel-modules-hook-0.1.7-2  kimageannotator-0.6.0-1  kinfocenter-5.26.5-1  kjs-5.102.0-1  kompare-22.12.2-1  kpmcore-22.12.2-1
kvantum-1.0.7-1  leveldb-1.23-3  libadwaita-1:1.2.1-1  libburn-1.5.4-1  libcacard-2.7.0-2  libcbor-0.10.1-1  libdvbpsi-1:1.3.3-2  libebml-1.4.4-1  libgovirt-2:0.3.9-1  libisoburn-1.5.4-2  libisofs-1.5.4-1  libjcat-0.1.12-1  libkgapi-22.12.2-1  libkomparediff2-22.12.2-1  libktorrent-22.12.2-1
libmad-0.15.1b-9  libmatroska-1.7.1-1  libnet-1:1.1.6-1  libnfs-5.0.2-1  libosinfo-1.10.0-2  libpipeline-1.5.7-1  libplacebo-5.229.1-2  libportal-0.6-1  libportal-gtk4-0.6-1  librest-0.9.1-2  libsigc++-2.12.0-1  libsigsegv-2.14-2  libsmbios-2.4.3-5  libspectre-0.2.12-1  libspeechd-0.11.4-1
libsynctex-2022.62885-3  libtar-1.2.20-6  libupnp-1.14.15-1  libvirt-1:9.0.0-1  libvirt-glib-4.0.0-2  libvirt-python-1:9.0.0-1  libvncserver-0.9.14-2  lua52-5.2.4-5  lua53-5.3.6-1  mangohud-0.6.8-5  mangohud-common-0.6.8-5  mariadb-libs-10.9.4-2  mcfly-0.7.1-1  mcpp-2.7.2-7  mesa-utils-8.5.0-2
minetest-common-5.6.1-2  multipath-tools-0.9.4-1  openimageio-2.4.6.1-4  openrgb-0.8-1  osinfo-db-20221130-1  pacman-contrib-1.8.2-1  pahole-1:1.24+r29+g02d67c5-1  patool-1.12-5.1  pdftk-3.3.3-2  phodav-3.0-1  plasma-browser-integration-5.26.5-1  plasma5-applets-eventcalendar-76-1.1
plasma5-applets-netspeed-1.9-1.1  plasma5-applets-window-appmenu-0.8.0-1.1  plasma5-applets-window-title-0.7.1-2.1  poco-1.12.4-1  postgresql-libs-15.1-1  potrace-1.16-2  powerline-common-2.8.3-1  powerline-fonts-2.8.3-1  profile-sync-daemon-1:6.48-1  protobuf-c-1.4.1-1  pybind11-2.10.3-2
python-appdirs-1.4.4-7  python-cairocffi-1.4.0-1  python-cairosvg-2.5.2-4  python-colorama-0.4.6-1  python-coloredlogs-15.0.1-3.1  python-cssselect2-0.7.0-1  python-defusedxml-0.7.1-4  python-humanfriendly-10.0-3  python-orjson-3.8.5-1  python-pooch-1.6.0-4  python-psutil-5.9.4-1
python-pynput-1.7.6-2.1  python-pyudev-0.24.0-2  python-requests-2.28.1-1  python-scipy-1.10.0-1  python-steamgriddb-1.0.5-1.1  python-tinycss2-1.2.1-1  python-urllib3-1.26.12-1  python-webencodings-0.5.1-9  python-xcffib-1.2.0-1  python-xlib-0.31-4  qemu-audio-alsa-7.2.0-3  qemu-audio-dbus-7.2.0-3
qemu-audio-jack-7.2.0-3  qemu-audio-oss-7.2.0-3  qemu-audio-pa-7.2.0-3  qemu-audio-sdl-7.2.0-3  qemu-audio-spice-7.2.0-3  qemu-block-curl-7.2.0-3  qemu-block-dmg-7.2.0-3  qemu-block-nfs-7.2.0-3  qemu-block-ssh-7.2.0-3  qemu-chardev-spice-7.2.0-3  qemu-desktop-7.2.0-3  qemu-hw-display-qxl-7.2.0-3
qemu-hw-display-virtio-gpu-7.2.0-3  qemu-hw-display-virtio-gpu-gl-7.2.0-3  qemu-hw-display-virtio-gpu-pci-7.2.0-3  qemu-hw-display-virtio-gpu-pci-gl-7.2.0-3  qemu-hw-display-virtio-vga-7.2.0-3  qemu-hw-display-virtio-vga-gl-7.2.0-3  qemu-hw-s390x-virtio-gpu-ccw-7.2.0-3  qemu-hw-usb-host-7.2.0-3
qemu-hw-usb-redirect-7.2.0-3  qemu-hw-usb-smartcard-7.2.0-3  qemu-img-7.2.0-3  qemu-pr-helper-7.2.0-3  qemu-tools-7.2.0-3  qemu-ui-curses-7.2.0-3  qemu-ui-dbus-7.2.0-3  qemu-ui-egl-headless-7.2.0-3  qemu-ui-gtk-7.2.0-3  qemu-ui-opengl-7.2.0-3  qemu-ui-sdl-7.2.0-3  qemu-ui-spice-app-7.2.0-3
qemu-ui-spice-core-7.2.0-3  qemu-vhost-user-gpu-7.2.0-3  qemu-virtiofsd-7.2.0-3  qgpgme-1.18.0-2  qt5pas-2.6.2.2.0-2  qtermwidget-1.2.0-1  qtkeychain-qt5-0.13.2-1  radvd-2.19-1  rsync-3.2.7-3  scrcpy-1.25-1  sddm-0.19.0-9  shaderc-2022.4-1  smartmontools-7.3-1  smpeg-2.0.0-2  socat-1.7.4.4-1
spatialindex-1.9.3-1  spice-0.15.1-1  spice-gtk-0.42-1  sudo-1.9.12.p2-1  sweet-kde-theme-git-r25.41a9a69-1  sweet-theme-full-git-r302.e64fd02-1  systemd-oomd-defaults-251.5-1.1  t1lib-5.1.2-8  texlive-bin-2022.62885-3  tinyxml2-9.0.0-1  ttf-firacode-nerd-2.3.3-2
ttf-meslo-nerd-font-powerlevel10k-1.000-3  usbredir-0.13.0-1  vim-runtime-9.0.1182-1  virglrenderer-0.10.4-1  virt-install-4.1.0-1  virt-manager-4.1.0-1  virt-viewer-11.0-2  vkbasalt-0.3.2.8-1  vkbasalt-cli-3.1.1-1  vlc-3.0.18-6  vte-common-0.70.2-1  vte3-0.70.2-1  wayland-utils-1.1.0-1
xdman-1:7.2.11-2  xorg-xwininfo-1.1.5-3  yajl-2.1.0-5  youtube-dl-2021.12.17-1  zeroc-ice-3.7.8-2  zram-generator-1.1.2-1  zsh-5.9-2  zsh-autosuggestions-0.7.0-1  zsh-completions-0.34.0-3  zsh-history-substring-search-1.0.2-1  zsh-syntax-highlighting-0.7.1-1  zziplib-0.13.72-1
amd-ucode-20230117.7e4f0ed-1  ark-22.12.2-1  bc-1.07.1-4  bottles-2:50.2-1  discord-0.0.24-1  dolphin-plugins-22.12.2-1  downgrade-11.2.1-1.1  ecryptfs-utils-111-7  electron18-18.3.15-4  elisa-22.12.2-1  fancontrol-gui-git-v0.8.r23.g5bfa8fa-1.1  firedragon-extension-plasma-integration-1.8.1-3.1
firedragon-extension-xdm-browser-monitor-2.2-1.1  garuda-dr460nized-2.0.12-3  garuda-settings-manager-kcm-1.0.2-1  garuda-setup-assistant-3.1.8-1  garuda-zsh-config-1.1.6-1  geocode-glib-3.26.4-2  glibmm-2.66.5-1  gnome-firmware-43.0-1  goverlay-git-0.9.1.r2.gbe1867a-1  grpc-1.51.1-3
guiscrcpy-1:2023.1.1-1  gwenview-22.12.2-1  heroic-games-launcher-bin-2.6.1-1  inxi-3.3.24.1-4  kcalc-22.12.2-1  kde-gtk-config-5.26.5-1  kde-service-menu-reimage-2.5-1.1  kde-servicemenus-encfs-0.8-2.1  kde-servicemenus-komparemenu-0.1-3.1  kde-servicemenus-officeconverter-1-1.1
kde-servicemenus-pdf-2.3-1.1  kde-servicemenus-pdf-encrypt-decrypt-1-1.1  kde-servicemenus-sendtodesktop-1-1.1  keyboard-visualizer-git-release_4.00.r26.gb50cc50-1.1  kget-22.12.2-1  khotkeys-5.26.5-1  kinit-5.102.0-1  kio-gdrive-22.12.2-1  krdc-22.12.2-1  krfb-22.12.2-1  ktorrent-22.12.2-1
kwallet-pam-5.26.5-1  kwayland-integration-5.26.5-1  kwin-effects-sliding-notifications-1.4.0-1.1  kwin-scripts-forceblur-0.6.1-1.1  lib32-libva-vdpau-driver-0.7.4-7  lib32-mangohud-0.6.8-4  lib32-openssl-1.0-1.0.2.u-2  lib32-smpeg-2.0.0-1  lib32-vkbasalt-0.3.2.8-1
libinput_gestures_qt-0.3.2+7+g0868859-1.1  libvdpau-va-gl-0.4.2-3  libvisual-0.4.0-8  libxpresent-1.0.1-1  linux-zen-headers-6.1.9.zen1-1  ltris-1.2.6-1  lutris-0.5.12-2  make-4.4-1  man-db-2.11.2-1  man-pages-6.02-1  mercurial-6.3.2-1  minecraft-launcher-1:1.0.1221-1.1  minetest-5.6.1-2
minetest-server-5.6.1-2  minigalaxy-1.2.2-3.1  mkinitcpio-openswap-0.1.0-3.1  mujs-1.3.2-1  mumble-1.5.517-1  mumble-server-1.5.517-1  nano-7.2-1  nextcloud-client-2:3.6.6-1  nmap-7.93-1  obs-studio-29.0.0-1  octopi-0.14.0-2  okular-22.12.2-1  openshadinglanguage-1.12.9.0-1  oversteer-0.7.2-1
partitionmanager-22.12.2-1  patchelf-0.17.2-1  plasma-disks-5.26.5-1  plasma-firewall-5.26.5-1  plasma-pa-5.26.5-1  plasma-systemmonitor-5.26.5-1  plasma-vault-5.26.5-1  rest-0.8.1+r4+ge5ee6ef-1  sddm-kcm-5.26.5-1  spectacle-22.12.2-1  steamtinkerlaunch-12.0-2  teeworlds-0.7.5-2  thunderbird-102.7.1-1
uchardet-0.0.8-1  virt-manager-meta-5-4  wayland-protocols-1.31-1  xf86-video-amdgpu-22.0.0-1  xf86-video-ati-1:19.1.0.r15.g7a6a34af-1  xf86-video-nouveau-1.0.17-2  xorg-xwayland-22.1.7-2  xsel-1.2.0.20200527-2

Total Removed Size:  2842.68 MiB

System:
Kernel: 6.1.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=77dabe98-e641-40e6-867a-421fff45a59f rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Gigabyte product: X570 AORUS ELITE WIFI v: -CF
serial: <superuser required>
Mobo: Gigabyte model: X570 AORUS ELITE WIFI v: x.x
serial: <superuser required> UEFI-[Legacy]: American Megatrends v: F11
date: 12/06/2019
CPU:
Info: model: AMD Ryzen 7 3800X bits: 64 type: MT MCP arch: Zen 2 gen: 3
level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701013
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 3903 high: 4410 min/max: 2200/4559 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4317 2: 3599
3: 4341 4: 3571 5: 3582 6: 3900 7: 3658 8: 3962 9: 3481 10: 3842 11: 3661
12: 4334 13: 4410 14: 3595 15: 3900 16: 4308 bogomips: 124568
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Hawaii XT / Grenada [Radeon R9 290X/390X]
vendor: Micro-Star MSI driver: amdgpu v: kernel alternate: radeon
arch: GCN-2 code: Sea Islands process: GF/TSMC 16-28nm built: 2013-17
pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: DP-1, DVI-D-1,
DVI-D-2, HDMI-A-1 empty: none bus-ID: 09:00.0 chip-ID: 1002:67b0
class-ID: 0300 temp: 73.0 C
Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 6400x1629 s-dpi: 96 s-size: 1693x431mm (66.65x16.97")
s-diag: 1747mm (68.78")
Monitor-1: DVI-D-1 mapped: DVI-D-0 pos: bottom-r model: HP 24es
serial: <filter> built: 2018 res: 1920x1080 hz: 60 dpi: 93 gamma: 1.2
size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-2: DVI-D-2 mapped: DVI-D-1 pos: bottom-l model: HP 24es
serial: <filter> built: 2018 res: 1920x1080 hz: 60 dpi: 93 gamma: 1.2
size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-3: DP-1 mapped: DisplayPort-0 pos: primary,top-center
model: Gigabyte G32QC serial: <filter> built: 2020 res: 2560x1440 dpi: 93
gamma: 1.2 size: 697x392mm (27.44x15.43") diag: 800mm (31.5") ratio: 16:9
modes: max: 2560x1440 min: 640x480
Monitor-4: HDMI-A-1 mapped: HDMI-A-0 pos: bottom-r model: Samsung
built: 2013 res: 1920x1080 hz: 60 dpi: 55 gamma: 1.2
size: 886x498mm (34.88x19.61") diag: 1168mm (46") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 22.3.4 renderer: AMD Radeon R9 390 Series (hawaii
LLVM 15.0.7 DRM 3.49 6.1.8-zen1-1-zen) direct render: Yes
Audio:
Device-1: AMD Hawaii HDMI Audio [Radeon R9 290/290X / 390/390X]
vendor: Micro-Star MSI driver: snd_hda_intel bus-ID: 1-2:3 v: kernel
chip-ID: 1b3f:2008 pcie: gen: 3 class-ID: 0300 speed: 8 GT/s lanes: 16
bus-ID: 09:00.1 chip-ID: 1002:aac8 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Generalplus USB Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid
Device-4: Generalplus USB Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 5-4:4 chip-ID: 1b3f:2008
class-ID: 0300
Sound API: ALSA v: k6.1.8-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.65 running: yes
Network:
Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0
chip-ID: 8086:24fb class-ID: 0280
IF: wlp4s0 state: down mac: <filter>
Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 05:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Bluetooth:
Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-5:2 chip-ID: 8087:0aa7 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 8.19 TiB used: 3.28 TiB (40.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: WD BLACK SN770 1TB size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 731030WD temp: 57.9 C scheme: MBR
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 500GB
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 2B6Q scheme: GPT
ID-4: /dev/sdc maj-min: 8:32 vendor: Western Digital
model: WD3003FZEX-00Z4SA0 size: 2.73 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
rev: 1A01 scheme: GPT
ID-5: /dev/sdd maj-min: 8:48 vendor: Western Digital
model: WD20EZRZ-22Z5HB0 size: 1.82 TiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 0A80 scheme: GPT
ID-6: /dev/sde maj-min: 8:64 type: USB vendor: Western Digital
model: WD My Passport 0827 size: 1.82 TiB block-size: physical: 512 B
logical: 512 B type: N/A serial: <filter> rev: 1012 scheme: MBR
Partition:
ID-1: / raw-size: 931.51 GiB size: 931.51 GiB (100.00%)
used: 780.41 GiB (83.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-2: /home raw-size: 931.51 GiB size: 931.51 GiB (100.00%)
used: 780.41 GiB (83.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /var/log raw-size: 931.51 GiB size: 931.51 GiB (100.00%)
used: 780.41 GiB (83.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
ID-4: /var/tmp raw-size: 931.51 GiB size: 931.51 GiB (100.00%)
used: 780.41 GiB (83.8%) fs: btrfs dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.29 GiB used: 131 MiB (0.4%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 63.9 C mobo: 39.0 C gpu: amdgpu temp: 73.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1737
Info:
Processes: 403 Uptime: 2h 59m wakeups: 0 Memory: 31.29 GiB
used: 5.52 GiB (17.7%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 1980 libs: 509 tools: octopi,paru Shell: fish v: 3.6.0 default: Bash
v: 5.1.16 running-in: konsole inxi: 3.3.24
Garuda (2.6.14-1):
System install date:     2022-12-04
Last full system update: 2023-02-02 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       <superuser required>
Failed units:

First thing is that orphans are not packages you don't need, they are packages installed as dependencies that no longer have anything depending on them. For example, if you install a meta-package and then remove the meta-package, all those packages will become orphans even though you may still be using those applications.

The next thing is that pacman -Rs will remove optional dependencies of other packages. This may not be what you want.

Lastly, you should start by looking at your actual orphans and deciding what should be converted to explicitly installed. What does pacman -Qtdq show you?

7 Likes

pacman -Qtdq shows this

edit: i feel like things like nano shouldn't be in there, i used to run it once in a while to clean unused packages but in never included all that stuff

pacman -Qtdq
amd-ucode
ark
bc
bottles
discord
dolphin-plugins
downgrade
ecryptfs-utils
electron18
elisa
fancontrol-gui-git
firedragon-extension-plasma-integration
firedragon-extension-xdm-browser-monitor
garuda-dr460nized
garuda-settings-manager-kcm
garuda-setup-assistant
garuda-zsh-config
geocode-glib
glibmm
gnome-firmware
goverlay-git
grpc
guiscrcpy
gwenview
heroic-games-launcher-bin
inxi
kcalc
kde-gtk-config
kde-service-menu-reimage
kde-servicemenus-encfs
kde-servicemenus-komparemenu
kde-servicemenus-officeconverter
kde-servicemenus-pdf
kde-servicemenus-pdf-encrypt-decrypt
kde-servicemenus-sendtodesktop
keyboard-visualizer-git
kget
khotkeys
kinit
kio-gdrive
krdc
krfb
ktorrent
kwallet-pam
kwayland-integration
kwin-effects-sliding-notifications
kwin-scripts-forceblur
lib32-libva-vdpau-driver
lib32-mangohud
lib32-openssl-1.0
lib32-smpeg
lib32-vkbasalt
libinput_gestures_qt
libvdpau-va-gl
libvisual
libxpresent
linux-zen-headers
ltris
lutris
make
man-db
man-pages
mercurial
minecraft-launcher
minetest
minetest-server
minigalaxy
mkinitcpio-openswap
mujs
mumble
mumble-server
nano
nextcloud-client
nmap
obs-studio
octopi
okular
openshadinglanguage
oversteer
partitionmanager
patchelf
plasma-disks
plasma-firewall
plasma-pa
plasma-systemmonitor
plasma-vault
rest
sddm-kcm
spectacle
steamtinkerlaunch
teeworlds
thunderbird
uchardet
virt-manager-meta
wayland-protocols
xf86-video-amdgpu
xf86-video-ati
xf86-video-nouveau
xorg-xwayland
xsel

It looks to me like one of the Garuda meta-packages might have been removed since there are some key items on that list.

Either figure out what was removed and reinstall it or convert the packages you want to keep to explicitly installed.

1 Like

That sounds like a possibility, hopefully i don't have to go through the list to figure out what everything does lol

Not too sure how to do that though, what are the garuda meta-packages that should be installed and how do i convert a file to explicitly installed?

I tried reinstalling thunderbird but it still shows up under pacman -Qtdq

Thanks

pacman -D --asexplicit packagename will convert it to explicitly installed.

7 Likes

Awesome thanks, idk what caused it but hopefully that takes care of it for good

one more thing, I need someone with a working install to type pacman -Qi nano and tell me what it says under "required by" im hoping that might point me in the right direction.

pacman -Qi nano
Name                     : nano
Version                  : 7.2-1
Beschreibung             : Pico editor clone with enhancements
Architektur              : x86_64
URL                      : https://www.nano-editor.org
Lizenzen                 : GPL
Gruppen                  : Nichts
Stellt bereit            : Nichts
HĂ€ngt ab von             : ncurses  file  sh
Optionale AbhÀngigkeiten : Nichts
Benötigt von             : Nichts
Optional fĂŒr             : Nichts
In Konflikt mit          : Nichts
Ersetzt                  : Nichts
InstallationsgrĂ¶ĂŸe       : 2,51 MiB
Packer                   : Andreas Radke <[email protected]>
Erstellt am              : Mi 18 Jan 2023 14:50:34 CET
Installiert am           : Fr 03 Feb 2023 03:04:21 CET
Installationsgrund       : AusdrĂŒcklich installiert
Installations-Skript     : Nein
Verifiziert durch        : Signatur

Use micro, like all Garuda Linux User’s :wink:

sudo pacman -R nano
3 Likes

ah interesting
mine says:

Install Reason  : Installed as a dependency for another package

i guess I'll have to try out this 'micro' :wink:

1 Like

Strange, I have:
Required By : None
Install Reason : Explicitly installed

3 Likes

I got the same output, I just install nano for check the -Qi :slight_smile:

1 Like

Who likes nano will love micro :slight_smile:

One of my installs has this odd “orphan” thing too. Although my orphan list is not quite as extensive, it does have quite a few packages that I know I installed.

pacman -Qtdq
bluetooth-autoconnect
dconf-editor
eog
ethtool
firedragon
firefox
garuda-settings-manager
geocode-glib
intel-ucode
js78
kfiredragonhelper
lib32-readline
libcddb
libibus
libvisual
libxnvctrl
micro
neard
networkmanager-support
ntp
python-beaker
python-nspektr
rest
ruby-dbus
signal-desktop
t1lib
usbip
vivaldi
xdg-user-dirs
xf86-video-intel

Signal and Vivaldi browser are especially odd to see on this list; not only did I explicitly install them, but what other package could possibly be using these as a dependency?

The only thing I can think of is the Setup Assistant post-install wizard could play a role somehow, because I often use that tool to install my browsers and Signal. That’s only a shot in the dark though, I’m really not sure. :male_detective:

This isn’t the first time this has come up; Technetium had a thread over the summer where he had tons of packages this was happening to:

This command does work perfectly fine to get packages off the list, and marked as explicitly installed:

It is not always clear if a false orphan should be kept or not, however. The significance of some of the libraries are often not obvious, for example. And how did ntp end up an orphan? Nothing needs that?! :sweat_smile:

3 Likes

very odd...

I did find a way to filter out some in bulk using the AI chat

i am left with these

appstream-glib
geocode-glib
glibmm
grpc
guiscrcpy
patchelf
rest

are they safe to delete?

Screenshot_20221262

sudo pacman -Rns (pacman -Qtdq)
For me, this command doesn't work with zsh; maybe some syntax difference.
Could someone point out the correct command for zsh?

You are missing the $

sudo pacman -Rns $(pacman -Qtdq)
1 Like

for real this is the best purpose I have seen somebody use chatgpt for. Easy text processing tool. Like SED or AWK but for people who have absolutely no clue how to use it

The difference would be that sed/awk wouldn’t give you a mix of good and bad data without any way to differentiate between the two


3 Likes