On 20.05.2024 16:45, -pj via openSUSE Users wrote:
On 05-20-2024 01:37AM, Andrei Borzenkov wrote:
On Mon, May 20, 2024 at 8:43 AM -pj via openSUSE Users <users@lists.opensuse.org> 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'.
Why? What problem are you trying to solve?
I would like to remove packages that are bloating the machine. So that I can keep the machines package structure well organized.
Whack a mole ... then it is arguably makes more sense to start with --no-recommends and only add what you need. ...
If removing the dependencies along with the package is set/selected. Will possibly other necessary important packages be affected by the removal of the dependency packages displayed by 'zypper pa --unneeded'?
Define "important". If "important" stands for "some other package has dependency on this package" - no, it will not happen. If "important" stands for "I (user) find the content of this package very important" - neither zypper nor RPM can read your mind. If this package has been explicitly installed, it will not be removed. But if it was added as dependency and then you found it useful - zypper has no way to know it. This is usual pitfall of using human meaningful words in computer science. They do not mean what you expect them to mean.