<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><div><blockquote type="cite" class=""><div class=""><br class="">On 8 Mar 2018, at 11:08, Waite, Dick (External) <<a href="mailto:Dick.Waite@softwareag.com" class="">Dick.Waite@softwareag.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;" class="">Grand Morning,<br class=""><br class="">If one has not made the following amend before running an UPDATE<br class=""><pre class="screen">solver.onlyRequires = true
installRecommends=false # or commented<br class=""></pre></div></div></blockquote><div>Just to give others a little bit of context:</div><div><br class=""></div><div><div>Regarding solver.onlyRequires and installRecommends the default settings are the</div><div>same for SLES 12 SP3 and SLES 15.</div></div><div><br class=""></div><div># grep solver.onlyRequires /etc/zypp/zypp.conf</div><div># solver.onlyRequires = false</div><div><br class=""></div><div>in /etc/zypp/zypper.conf: </div><div>## Install soft dependencies (recommended packages)</div><div>##</div><div>## CAUTION: The system wide default for all libzypp based applications (zypper,</div><div>## yast, pk,..) is defined in  /etc/zypp/zypp.conf(solver.onlyRequires)  and it</div><div>## will per default install recommended packages. It is NOT RECOMMENDED to define</div><div>## this value here for zypper exclusively, unless you are very certain that you</div><div>## want zypper to behave different than other libzypp based packagemanagement software</div><div>## on your system.</div><div>##</div><div>## Valid values: boolean</div><div>## Default value: follow zypp.conf(solver.onlyRequires)</div><div>##</div><div># installRecommends = yes</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;" class=""><pre class="screen">How can one remove all the not needed bits and bobs with zypper or Yast2 or does one have to do the whole thing again ?<br class=""></pre></div></div></blockquote><div><div>First thing first, could you tell us what was the reason to change the default</div><div>settings?</div><div><br class=""></div><div>Second, do you mean how could you remove all installed packages that were</div><div>considered as “recommended packages”? </div><div><br class=""></div><div>Not sure if this is the best approach but I have just come up with this to list</div><div>all installed recommended packages: </div><div># for i in `zypper pa -i | awk -F '|' '{print $3}'`; do zypper info --recommends $i | grep -A 10 Recommends >> installed-recommended-packages.txt; done</div><div><br class=""></div><div>This can may take a long time to be executed...</div><div><br class=""></div><div>- zypper pa -i | awk -F '|' '{print $3}’ : </div><div>List all installed package in your system and only their name.</div><div>- zypper info --recommends $i : </div><div>add the recommended packages of a given package in the info output</div><div>- grep -A 10 Recommends: </div><div>Dirty way to only show the “Recommends”, so it will only save the potential</div><div>max of 10 recommended packages (I dunno if any has more than 10…) and not the entire</div><div>zypper info output, for better readability.</div><div><br class=""></div><div>Last, the general advice when you want to have a system with very limited</div><div>packages set is to (fresh) install a SLES minimal or use JeOS, then you can</div><div>change the default setting of “solver.onlyRequires” if you really want to after</div><div>reckoning that this might cause side effects. </div></div><blockquote type="cite" class=""><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; direction: ltr; font-family: Tahoma; font-size: 10pt;" class=""><pre class="screen"><br class="">Many Thanks<br class=""><br class="">__R</pre></div></div></blockquote><div class=""><div><br class=""></div><div>Regards,</div><div>--</div><div>Vincent Moutoussamy</div><div>SUSE Beta Program and SDK Project Manager</div></div><div class=""><div class=""><br class=""></div></div></div></div></body></html>