You are not logged in.

#1 2020-04-24 13:52:30

spike32
Member
Registered: 2020-04-18
Posts: 8

Cannot uninstall KDE apps

Hello everyone!
I'm using Plasma Desktop, more specific I have installed the plasma-meta package. Everything is working well, but KDE has got a lot of apps that I don't use and they just occupy memory, and I'm not able to uninstall them.
For example, if I try to uninstall kmail:

> sudo pacman -R kmail
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing kmail breaks dependency 'kmail' required by kdepim-meta

So I try with:

> sudo pacman -R kdepim-meta
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing kdepim-meta breaks dependency 'kdepim-meta' required by kde-applications-meta

But of course I cannot uninstall kde-applications-meta package. For the same reason I cannot run pacman -Rc package otherwise it will recursively uninstall everything.
How can I uninstall useless apps?

Offline

#2 2020-04-24 13:56:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: Cannot uninstall KDE apps

spike32 wrote:

But of course I cannot uninstall kde-applications-meta package. For the same reason I cannot run pacman -Rc package otherwise it will recursively uninstall everything.

What?  That doesn't make any sense.  You can and should remove the kde-applications-meta package (or whichever other higher level meta-package requires it).  Just don't use the -c or -s flags.  Your comparison is apples and oranges.

EDIT: actually, using the -s flag could be good if you prep first.

Steps:
1. Figure out what you actually want and mark those packages as explicitly installed.
2. Remove the meta-package(s) above those with the the -s (and optionally -n) flag.

"Simpler" now, but less cautious approach resuling in more work later:
1. Remove the top-level meta package with `pacman -R $pkgname`.  This will not remove anything else.
2. Go through and remove whatever you want.
3. Sometime later, realize that lots of stuff you want is orphaned and needs to be marked as explicitly installed.

Last edited by Trilby (2020-04-24 14:00:47)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-04-24 14:00:13

spike32
Member
Registered: 2020-04-18
Posts: 8

Re: Cannot uninstall KDE apps

Trilby wrote:
spike32 wrote:

But of course I cannot uninstall kde-applications-meta package. For the same reason I cannot run pacman -Rc package otherwise it will recursively uninstall everything.

What?  That doesn't make any sense.  You can and should remove the kde-applications-meta package (or whichever other higher level meta-package requires it).  Just don't use the -c or -s flags.  Your comparison is apples and oranges.

If I remove the kde-applications-meta package would I lose everything, wouldn't I? I mean basic things such as dolphin, konsole, etc.

Offline

#4 2020-04-24 14:01:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,516
Website

Re: Cannot uninstall KDE apps

spike32 wrote:

If I remove the kde-applications-meta package would I lose everything, wouldn't I? I mean basic things such as dolphin, konsole, etc.

No.  Pacman does what you tell it.  If you remove kde-applications-meta, why would it remove anything else?  (but see my edit)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2020-04-24 14:26:05

Steef435
Member
Registered: 2013-08-29
Posts: 577
Website

Re: Cannot uninstall KDE apps

spik32: if you look at the PKGBUILD for kde-applications-meta, you see that meta packages are nothing more than "empty" packages that have a lot of dependencies (you only install them to conveniently install all their dependencies). So if you just remove the meta package, you will effectively lose nothing, except some administrative advantages Trilby already talked about. ("nothing" as in, you won't lose any binaries/files/whatever)

Last edited by Steef435 (2020-04-24 14:27:36)

Offline

Board footer

Powered by FluxBB