You are not logged in.
Pages: 1
Topic closed
i wanted to remove polkit, so i start with:
22-06-08 11:16AM
schnell% paru -Rs polkit
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing polkit breaks dependency 'polkit' required by colord
:: removing polkit breaks dependency 'polkit' required by power-profiles-daemon
Ok so now we do:
schnell% paru -Rs polkit colord power-profiles-daemon
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing colord breaks dependency 'colord' required by colord-gtk-common
Fine!! so we go for colord ...
which gives more breaking package and more and eventually we get to:
schnell% paru -Rs polkit colord power-profiles-daemon colord-gtk-common colord-gtk
according to this article:
How to Remove a Package and Its Dependencies with Pacman on Arch Linux
i can see the dependency tree using
pactree ITM
and i can do
pacman -Rcns ITM
to remove ITM's dependencies.
also (from the article),
pacman -Qdtq
just shows me packages that don't depend on anything.
however, all this just deals with ITM's dependencies NOT packages that depend on ITM.
what is the best approach to removing ITM when there are packages that depend on ITM?
(my guess is it can't be done other than the way i did chasing down everything that would break, because you could do a lot of damage unknowingly ... but i don't know, so i ask).
Last edited by pradtf (2022-06-08 19:15:59)
in friendship,
prad
Offline
Offline
pactree ITM ... however, all this just deals with ITM's dependencies NOT packages that depend on ITM.
Read `man pactree` or `pactree --help` - it can do this as well.
what is the best approach to removing ITM when there are packages that depend on ITM?
You can't. Or more precisely you really really shouldn't. While there is a way to force it, it is burried in a obscure, secure, hidden place that you're unlikely to ever see: your package manager's man page.
But again, you really shouldn't. It's a dependency for a reason. By all means use the options you discover for pactree to figure out what top-level package (transiently) requires ITM or whatever package as a dependency, then if you are okay without that top-level package then remove it and all it's dependencies and ITM will be gone. Otherwise, deal with it.
Last edited by Trilby (2022-06-08 19:04:14)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
understood!
thx tucuxi and trilby.
so, we have
To remove a package, its dependencies and all the packages that depend on the target package:
pacman -Rsc ITM
To remove a package, which is required by another package, without removing the dependent package:
pacman -Rdd ITM
though this one leaves dependent packages and so can break the system.
it must be the one "burried in a obscure, secure, hidden place"
and is on the avoid pacman command list!
now i'm ready to "deal with it"!
in friendship,
prad
Offline
In case you need more information on polkit and whether to remove it or not:
http://smcv.pseudorandom.co.uk/2015/why_polkit/
Offline
In case you need more information on polkit and whether to remove it or not:
http://smcv.pseudorandom.co.uk/2015/why_polkit/
And my answer is "yes remove it, kill it with fire, and anything that depends on it".
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
In my case I did:
pacman -Rsc kwindowsystem5
pacman -S kwindowsystem
pacman -S dolphin
pacman -S kvantum
pacman -S latte-dock
Last edited by xfechx (2024-10-25 15:23:54)
Offline
Using this opportunity to close this old thread.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed