How do I list the files in my kernel rpms on redhat?



  • Also see: What are the various kernel rpms installed on redhat servers? for a list of kernel rpms.

    List the kernel rpms.

    $ rpm -qa | grep kernel
    kernel-modules-4.18.0-80.4.2.el8_0.x86_64
    kernel-core-4.18.0-147.5.1.el8_1.x86_64
    kernel-tools-4.18.0-147.5.1.el8_1.x86_64
    kernel-modules-4.18.0-147.5.1.el8_1.x86_64
    kernel-4.18.0-147.5.1.el8_1.x86_64
    kernel-4.18.0-80.4.2.el8_0.x86_64
    kernel-tools-libs-4.18.0-147.5.1.el8_1.x86_64
    kernel-core-4.18.0-80.4.2.el8_0.x86_64
    

    List the files contained in a kernel rpm.

    $ rpm -ql kernel-core-4.18.0-147.5.1.el8_1.x86_64 | less
    
    /boot/.vmlinuz-4.18.0-147.5.1.el8_1.x86_64.hmac
    /boot/System.map-4.18.0-147.5.1.el8_1.x86_64
    /boot/config-4.18.0-147.5.1.el8_1.x86_64
    /boot/initramfs-4.18.0-147.5.1.el8_1.x86_64.img
    ...
    ...
    ...
    

Log in to reply
 

© Lightnetics 2020