To disable weak dependencies, set the solver.onlyRequires option to true in the /etc/zypp/zypp.conf file.
Weak dependencies (such as recommended packages) can introduce unneeded software components on the system, increasing the attack surface. Disabling them ensures that only packages strictly required for operations are installed.