Get SLES needed RPM from OpenSuse

When you build software on SLES, if there is no need RPM provided, you can try to download it from OpenSuse website:https://software.opensuse.org/search . E.g.:

# rpmbuild -bp xen.spec
error: Failed build dependencies:
    figlet is needed by xen-4.5.1_10-1.9.x86_64

When build Xen source code, the SLES doesn’t provide figlet RPM. Download and install this RPM from this link:http://download.opensuse.org/repositories/openSUSE:/13.2/standard/x8664/figlet-2.2.4-12.1.5.x8664.rpm. Then it works!

 

Install right “kernel-debuginfo” package on RHEL

You need to install right “kernel-debuginfo” package on RHEL. E.g.:

# rpm -q kernel
kernel-3.10.0-229.el7.x86_64

# uname -r
3.10.0-229.el7.x86_64

# rpm -q kernel-debuginfo
package kernel-debuginfo is not installed

# rpm -ivh kernel-debuginfo-common-x86_64-3.10.0-229.el7.x86_64.rpm

# rpm -ivh kernel-debuginfo-3.10.0-229.el7.x86_64.rpm

# rpm -q kernel-debuginfo
kernel-debuginfo-3.10.0-229.el7.x86_64

If kernel is debug version, you also need to install kernel-debug-debuginfo package:

# uname -r
3.10.0-229.el7.x86_64.debug

# rpm -ivh kernel-debuginfo-common-x86_64-3.10.0-229.el7.x86_64.rpm

# rpm -ivh kernel-debug-debuginfo-3.10.0-229.el7.x86_64.rpm

Reference:

[Crash-utility] How does crash find booted kernel?.