背景:想从 OpenCloudOS 的 Kernel 包中提取 Kernel Config。

apt install rpm2cpio -y

rpm2cpio xxx.rpm | cpio -id -D ./target_dir