Sample code using libzypp:
zypp::Target_Ptr target = zypp::getZYpp()->target();
zypp::Product::constPtr product = target->baseProduct();
logDebug() << "Product name: " << product->name()
<< " summary: " << product->summary()
Kernel firmware packages consume a lot of disk space on a Linux system, both on the installed system and in an installation environment (inst-sys). In some cases (e.g. RAM disk for a minimal NET ISO), that also means a lot of RAM usage.
The installed kernel-firmware packages on a Leap 15.5 (screenshot of qdirstat pkg:/kernel-firmware
)
sudo zypper in libqt5-qtwebengine-examples
Taken from my GitHub profile / history; omitting duplicate PRs due to merging to SLE-15-SP4, then merging to master.
The workaround for this was to set LD_PRELOAD if libsuseconnect.so was | |
found, but that causes new problems: This is inherited by child | |
processes, and now every binary started from YaST also gets this | |
LD_PRELOAD, so they are now also force linked to libsuseconnect.so. | |
YaST uses external programs extensively; among lots of other things, | |
for storage probing. That means that in many cases, storage probing | |
now fails because of this; mostly due to out of memory because | |
libsuseconnect.so (and the Go runtime libs that it uses?) consumes a | |
lot more RAM. |
This document moved to a new location; this Gist is now a mirror.
This is the method to use since about 2018. Don't use SCR .target.bash in new code.