On Mon, May 20, 2024 at 11:01 AM Simon Lees <sflees@suse.de> wrote:
On 5/20/24 3:12 PM, -pj via openSUSE Users wrote:
Hi, I am wondering about how I should best go about purging packages and possibly dependencies along with what is displayed after passing 'zypper pa --unneeded'.
I can use 'zypper remove --clean-deps' to remove the package along with it's uneeded dependencies or set 'solver.cleandepsOnRemove = true' in '/etc/zypp/zypp.conf'.
Is it safe to set solver to clean up the dependencies on package removal in '/etc/zypp/zypp.conf' ?
Can you tell me why it may be a bad idea to do this? I recently used 'zypper rm packagenames' to remove packages that 'zypper pa --unneeded' displayed on a machine without removing any dependent packages.
Disabling recommends on any non MicroOS based system is likely to cause you issues,
As I understand the question, it was not about disabling recommends on install but rather about enabling automatic --clean-deps. Which should be relatively harmless, except the obvious confusion around "unneeded" packages.
partly because its not well tested and partly because some things you may think are essential someone else may think is not. So if you are prepared for a bunch of stuff to break and then you'll need to manually figure out which packages need to be re installed.
If your happy to deal with that and file bugs as needed then go for it.
-- Simon Lees (Simotek) http://simotek.net
Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B