Problem Removing kde after installation ;-(

So, I installed gnome version on my computer with I originally installed Manjaro. I was happy getting use to the shell. Today I got a silly thought and said, Let’s give kde a try, because why not. I got time, you know. I began to follow the wiki section to get the kde install, from here: Install Desktop Environments - Manjaro. Sadly kde is not ready for me at the moment so, I decided to uninstall the environment. When I try to do things like this:

sudo pacman -R plasma kio-extras                                                                                                                                                                                
Place your finger on the fingerprint reader
error: target not found: plasma

Is there a way for you guys to help me get gnome back as the only DE in my computer? kde, sadly don’t want to go. I need it out. Thank you for your kind services.

Peace.

inxi -Faz                                                                                                                                                                                                        ✔ 
System:
  Kernel: 5.15.21-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.15-x86_64
    root=UUID=fb3b8569-3b15-4c53-ab66-d3dd1f3cb627 rw rootflags=subvol=@
    quiet splash apparmor=1 security=apparmor
    resume=UUID=f2e22fa6-fc97-4195-b99c-425615b3ea4b udev.log_priority=3
  Desktop: GNOME 41.3 tk: GTK 3.24.31 wm: gnome-shell dm: GDM 41.3
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20U9005MUS v: ThinkPad X1 Carbon Gen 8
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20U9005MUS v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: N2WET30W (1.20 )
    date: 08/26/2021
Battery:
  ID-1: BAT0 charge: 49.9 Wh (100.0%) condition: 49.9/51.0 Wh (97.8%)
    volts: 17.3 min: 15.4 model: SMP 5B10W13931 type: Li-poly serial: <filter>
    status: Full cycles: 19
CPU:
  Info: model: Intel Core i7-10510U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xEA
  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: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 987 high: 1975 min/max: 400/4900 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1975 2: 1119 3: 803
    4: 800 5: 800 6: 800 7: 800 8: 800 bogomips: 36812
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds mitigation: TSX disabled
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel bus-ID: 00:02.0 chip-ID: 8086:9b41 class-ID: 0300
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-8:2 chip-ID: 13d3:56bb class-ID: 0e02
  Display: wayland server: X.org 1.21.1.3 compositor: gnome-shell driver:
    loaded: modesetting alternate: fbdev,vesa display-ID: 0
    resolution: <missing: xdpyinfo>
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Lenovo
    driver: sof-audio-pci-intel-cnl
    alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci_intel_cnl
    bus-ID: 00:1f.3 chip-ID: 8086:02c8 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.21-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.45 running: yes
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:0d4f class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:4 chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 953.87 GiB used: 234.16 GiB (24.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: PC SN730 SDBQNTY-1T00-1001 size: 953.87 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 11170101 temp: 45.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 936.96 GiB size: 936.96 GiB (100.00%)
    used: 234.13 GiB (25.0%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 24.8 MiB (4.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 936.96 GiB size: 936.96 GiB (100.00%)
    used: 234.13 GiB (25.0%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-4: /var/log raw-size: 936.96 GiB size: 936.96 GiB (100.00%)
    used: 234.13 GiB (25.0%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.41 GiB used: 7.8 MiB (0.0%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: 59.0 C pch: 61.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 3036
Info:
  Processes: 346 Uptime: 34m wakeups: 4 Memory: 15.29 GiB
  used: 4.91 GiB (32.1%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.1 Packages: 1980 pacman: 1939 lib: 479 flatpak: 32
  snap: 9 Shell: Zsh v: 5.8 running-in: konsole inxi: 3.3.12
sudo pacman -R plasma-desktop kio-extras

yep - you gotta use the proper/actual names of the packages that you want to remove :wink:

To see/know what exactly got installed and what you therefore want to remove
can be tracked/seen by inspecting the pacman.log

tac /var/log/pacman.log | less
(this lists the pacman install log in reverse order, most recent entries first - use arrow keys to scroll …)

It’s not automated - not recursive
but it is safe
and with copy/paste only takes a few minutes …
just deinstall each one that was installed since when you installed KDE
you can put all in one line
sudo pacman -R …the list of packages that got installed, separated by a space …

1 Like

Hey @maycne.sonahoz Thank you for the quick post. Here is the result of the CLI:

sudo pacman -R plasma-desktop kio-extras                         ✔ 
Place your finger on the fingerprint reader
error: target not found: plasma-desktop

so, I decided to install plasma-desktop. after I typed the same command to remove it, since the first command did have an error I applied it. This is the result after word:

sudo pacman -R plasma-desktop plasma5-themes-breath-migration plasma-framework plasma-workspace kio-extras 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing kio-extras breaks dependency 'kio-extras' required by dolphin
:: removing plasma-framework breaks dependency 'plasma-framework' required by knights
:: removing plasma-framework breaks dependency 'plasma-framework' required by krunner
:: removing plasma-framework breaks dependency 'plasma-framework' required by kwin
:: removing plasma-workspace breaks dependency 'plasma-workspace' required by systemsettings

Then I decided just to type the command you gave me without the others packages to uninstalled and this was the result:

sudo pacman -R plasma-desktop  kio-extras                   
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing kio-extras breaks dependency 'kio-extras' required by dolphin
:: removing kio-extras breaks dependency 'kio-extras' required by plasma-workspace

I checked the manual, and it says it should indeed accept groups as removal target.
Maybe it can’t handle removing a group and a package at the same time…?

sudo pacman -R plasma
sudo pacman -R kio-extras

What you said worked but not all the way. :frowning_face: I obviously had to do it the way you said because it made sense and it did work the way you said it. So I thank you for that. But then I had to go and uninstall all the kde programs and their dependency the following way:

sudo pacman -R telepathy-kde-common-internals purpose libakonadi kaccounts-providers akonadi akonadi-contacts akonadi-mime gwenview kalarmcal kamoso kdenlive kdepim-runtime kio-gdrive okular pimcommon spectacle telepathy-kde-accounts-kcm telepathy-kde-auth-handler telepathy-kde-call-ui telepathy-kde-contact-list telepathy-kde-filetransfer-handler telepathy-kde-integration-module telepathy-kde-send-file telepathy-kde-text-ui akonadi-calendar akonadi-search calendarsupport kaddressbook kalarm kgpg kmail kmail-account-wizard kmailtransport knotes korganizer libgravatar libksieve mailimporter telepathy-kde-common-internals telepathy-kde-contact-runner akonadi-calendar-tools akonadiconsole eventviews kdepim-addons kontact mailcommon messagelib pim-data-exporter pim-sieve-editor zanshin akonadi-import-wizard akregator grantlee-editor incidenceeditor mbox-importer

also

sudo pacmain -R kaccounts-integration

Finally I had to do the following:

sudo pacman -R kde-applications signon-kwallet-extension kaccounts-integration Then it finally work. everything from kde is gone from the system Thanks dude. :smiley:

Thanks dude, I had to see and learned the hard way. :smiley: Thanks again.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.