I somehow also have gnome installed, how can I remove it?

A while ago I installed KDE Plasma, but I’m not sure what change I did, or installed, but I also have gnome installed.

I wanted to know, if I were to remove gnome, what risks are there, and if there is anything I should look at before removing it?

System:
  Kernel: 7.1.4-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 16.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-7.1-x86_64
    root=UUID=e25eb414-7401-4086-851c-0725906b306f rw quiet splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 6.7.3 tk: Qt v: N/A info: frameworks v: 6.28.0
    wm: kwin_wayland vt: 1 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: X570 AORUS ELITE v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: X570 AORUS ELITE serial: <superuser required>
    uuid: <superuser required> Firmware: UEFI vendor: American Megatrends LLC.
    v: F40d date: 09/02/2024
Battery:
  Device-1: hidpp_battery_0 model: Logitech PRO X 2 serial: <filter>
    charge: N/A status: N/A
  Device-2: hidpp_battery_1 model: Logitech PRO X 2 serial: <filter>
    charge: 12% rechargeable: yes status: charging
CPU:
  Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+ gen: 3
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 0 microcode: 0xA20102E
  Topology: cpus: 1x dies: 1 clusters: 1 cores: 6 threads: 12 tpc: 2
    smt: enabled cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB
    desc: 6x512 KiB L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3663 min/max: 561/4654 boost: enabled scaling:
    driver: amd-pstate-epp governor: performance cores: 1: 3663 2: 3663 3: 3663
    4: 3663 5: 3663 6: 3663 7: 3663 8: 3663 9: 3663 10: 3663 11: 3663 12: 3663
    bogomips: 88800
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
    svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: ghostwrite status: Not affected
  Type: indirect_target_selection status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: old_microcode status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: Safe RET
  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: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsa mitigation: Clear CPU buffers
  Type: tsx_async_abort status: Not affected
  Type: vmscape mitigation: IBPB before exit to userspace
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 32 [Radeon RX 7700 XT / 7800
    XT] vendor: Sapphire driver: amdgpu v: kernel arch: RDNA-3 code: Navi-3x
    process: TSMC n5 (5nm) built: 2022+ pcie: gen: 4 speed: 16 GT/s lanes: 16
    ports: active: DP-1,DP-2 empty: HDMI-A-1,HDMI-A-2,Writeback-1
    bus-ID: 0c:00.0 chip-ID: 1002:747e class-ID: 0300
  Device-2: Logitech Brio 100 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.3:6
    chip-ID: 046d:094c class-ID: 0102 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.13
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu d-rect: 5120x1440 display-ID: 0
  Monitor-1: DP-1 pos: right model: Gigabyte M27Q X serial: <filter>
    built: 2022 res: mode: 2560x1440 hz: 240 scale: 100% (1) dpi: 109 gamma: 1.2
    size: 596x335mm (23.46x13.19") diag: 684mm (26.9") ratio: 16:9 modes:
    max: 2560x1440 min: 640x480
  Monitor-2: DP-2 pos: primary,left model: Gigabyte M27Q serial: <filter>
    built: 2024 res: mode: 2560x1440 hz: 170 scale: 100% (1) dpi: 93 gamma: 1.2
    size: 597x336mm (23.5x13.23") diag: 801mm (31.5") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: radeonsi surfaceless: drv: radeonsi wayland:
    drv: radeonsi x11: drv: radeonsi
  API: OpenGL v: 4.6 vendor: amd mesa v: 26.1.5-arch1.1 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon RX 7800 XT (radeonsi navi32 ACO DRM
    3.64 7.1.4-1-MANJARO) device-ID: 1002:747e memory: 15.62 GiB unified: no
    display-ID: :1.0
  API: Vulkan v: 1.4.350 layers: 14 device: 0 type: discrete-gpu name: AMD
    Radeon RX 7800 XT (RADV NAVI32) driver: mesa radv v: 26.1.5-arch1.1
    device-ID: 1002:747e surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: amdgpu_top, corectrl, radeontop
    wl: wayland-info,wlr-randr x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 31 HDMI/DP Audio
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0c:00.1 chip-ID: 1002:ab30 class-ID: 0403
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: Gigabyte driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 0e:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech Brio 100 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3.3:6
    chip-ID: 046d:094c class-ID: 0102 serial: <filter>
  Device-4: FiiO Air Link driver: hid-generic,snd-usb-audio,usbhid type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-3.1:4 chip-ID: 2972:0158
    class-ID: 0102
  Device-5: Audio-Technica AT2020USB+
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 5-4:4 chip-ID: 0909:001c class-ID: 0300
  API: ALSA v: k7.1.4-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 1.6.8 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet 10-Gigabit X540-AT2 driver: ixgbe v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 4 link-max: lanes: 8 port: N/A bus-ID: 05:00.0
    chip-ID: 8086:1528 class-ID: 0200
  IF: enp5s0f0 state: down mac: <filter>
  Device-2: Intel Ethernet 10-Gigabit X540-AT2 driver: ixgbe v: kernel pcie:
    gen: 2 speed: 5 GT/s lanes: 4 link-max: lanes: 8 port: N/A bus-ID: 05:00.1
    chip-ID: 8086:1528 class-ID: 0200
  IF: enp5s0f1 state: up speed: 10000 Mbps duplex: full mac: <filter>
  Device-3: Intel I211 Gigabit Network vendor: Gigabyte driver: igb v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp6s0 state: down mac: <filter>
  IF-ID-1: br-0c35d9473d22 state: down mac: <filter>
  IF-ID-2: br-ad428885d2d8 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-3: docker0 state: down mac: <filter>
  IF-ID-4: vetha6a0ea7 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-5: virbr0 state: down mac: <filter>
  Info: services: NetworkManager,systemd-timesyncd
Bluetooth:
  Device-1: TP-Link UB500 Adapter driver: btusb v: 0.8 type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 5-3:3 chip-ID: 2357:0604
    class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10 status: discoverable: no pairing: no class-ID: c0104
Drives:
  Local Storage: total: 6.37 TiB used: 2.57 TiB (40.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO with
    Heatsink 2TB size: 1.82 TiB block-size: physical: 512 B logical: 512 B
    speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: 5B2QGXA7
    temp: 53.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:6 vendor: Samsung
    model: SSD 970 EVO Plus 2TB size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 2B2QEXM7 temp: 52.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 4B6Q scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM008-2FR102
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: 0001 scheme: GPT
Partition:
  ID-1: / raw-size: 1.82 TiB size: 1.79 TiB (98.37%) used: 1.26 TiB (70.5%)
    fs: ext4 dev: /dev/nvme1n1p2 maj-min: 259:8
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 332 KiB (0.1%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:7
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 56.5 C mobo: 37.0 C gpu: amdgpu temp: 64.0 C
    mem: 64.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 514
Info:
  Memory: total: 32 GiB available: 31.26 GiB used: 13.47 GiB (43.1%)
  Processes: 488 Power: uptime: 1d 18m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 12.44 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 261 default: graphical
    tool: systemctl
  Packages: 2693 pm: dpkg pkgs: 1 pm: pacman pkgs: 2647 libs: 536
    tools: pamac,yay pm: rpm pkgs: 0 pm: flatpak pkgs: 45 Compilers:
    clang: 22.1.8 gcc: 16.1.1 Shell: Zsh v: 5.9.2 default: Bash v: 5.3.15
    running-in: konsole inxi: 3.3.41

What GNOME packages do you have installed?

This will list the packages you have installed in the gnome group:

pacman -Qg gnome
gnome gnome-keyring
gnome gnome-session
gnome gnome-settings-daemon
gnome gnome-shell
gnome gvfs
gnome nautilus
gnome orca
gnome simple-scan
gnome xdg-desktop-portal-gnome
gnome xdg-user-dirs-gtk
gnome yelp

Hopefully you never logged into gnome with your main user account.
That can cause dotfiles disaster.

I tested multiple DEs with a temporary user account, and hyperland completely ruined KDE Plasma’s settings and most annoyingly keyboard shortcuts, along with theme stuff.

I would recommend making backup/snapshot of your data just in case, remember timeshift doesnt snapshot config files by default.

You can remove them recursively with the following–as long as nothing depends on them:

sudo pacman -Rsu gnome-keyring gnome-session gnome-settings-daemon gnome-shell gvfs nautilus orca simple-scan xdg-desktop-portal-gnome xdg-user-dirs-gtk yelp

I see a few dependence, this this fine?

checking dependencies...
warning: removing gnome-shell from target list
warning: removing gnome-keyring from target list
warning: removing gjs from target list
warning: removing gnome-autoar from target list
warning: removing gnome-desktop-4 from target list
warning: removing gnome-session from target list
warning: removing gnome-settings-daemon from target list
warning: removing ibus from target list
warning: removing libgdm from target list
warning: removing libgweather-4 from target list
warning: removing libibus from target list
warning: removing libical from target list
warning: removing mutter from target list
warning: removing js140 from target list
warning: removing xdg-desktop-portal-gnome from target list
warning: removing geoclue from target list
warning: removing geocode-glib from target list
warning: removing gweather-locations from target list
warning: removing colord from target list
warning: removing egl-wayland from target list
warning: removing python-argcomplete from target list
warning: removing startup-notification from target list
warning: removing libgusb from target list
warning: removing eglexternalplatform from target list
warning: removing nautilus from target list
warning: removing gexiv2 from target list
warning: removing glycin-gtk4 from target list
warning: removing gvfs from target list
warning: removing libportal-gtk4 from target list
warning: removing localsearch from target list
warning: removing xdg-user-dirs-gtk from target list
warning: removing exempi from target list
warning: removing gupnp-dlna from target list
warning: removing libcue from target list
warning: removing libgsf from target list
warning: removing libgxps from target list
warning: removing libiptcdata from target list
warning: removing totem-pl-parser from target list
:: brltty optionally requires python-brltty: for Python bindings
:: colord optionally requires colord-sane: SANE support
:: easyeffects optionally requires yelp: in-app help
:: manjaro-printer optionally requires simple-scan: Gtk3 scanning utility
:: prismlauncher optionally requires orca: minecraft screen reader

Something you have installed depends on one or more of those packages, that’s why it’s removing them from the target list.

You can check what requires them with pacman -Qi <package-name>; i.e., with gnome-shell:

pacman -Qi gnome-shell | grep 'Required By'

@AwwsmGaurav

Luckily I never logged in with gnome.

Thank you for the warning :slight_smile:

@Yochanan

it seems to be required by gnome-shell-extension-appindicator, and nothing requires that package.

Mod edit: Consecutive posts merged and @mentions added.
If there are no intervening replies, please edit your previous post instead to add further information. Cheers!
:wink:

This should take care of most if not all of them, then you can see what’s left from the gnome group:

sudo pacman -Rsu gnome-shell-extension-appindicator

Ok, this time I only see optional dependencies as a warning, this should be safe right?

checking dependencies...
:: flameshot optionally requires gnome-shell-extension-appindicator: for system tray icon if you are using Gnome
:: gimp optionally requires gjs: for JavaScript scripting support
:: plasma-desktop optionally requires ibus: kimpanel IBUS support
:: qt6-positioning optionally requires geoclue: geoclue2 plugin
:: webkit2gtk-4.1 optionally requires geoclue: Geolocation support
:: webkitgtk-6.0 optionally requires geoclue: Geolocation support
:: xdg-desktop-portal optionally requires geoclue: Location portal

Yes. You can always reinstall optional dependencies later if wanted / needed; i.e., with geoclue:

sudo pacman -S --asdeps geoclue

There was the culprit, apparently. :bullseye:

Alright, Thank you everyone for the help :slight_smile: