简体   繁体   English

无法从 c7 elrepo kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm 中提取 kernel 源 xz

[英]Cannot extract kernel source xz from c7 elrepo kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm

Please let me know what I need to do to extract linux-4.4.236.tar.xz from the rpm请让我知道我需要做什么才能从 rpm 中提取linux-4.4.236.tar.xz

My goal is to extract the kernel source and repackage it for use in out build process.我的目标是提取 kernel 源并将其重新打包以用于构建过程。 We use the standard pattern for this but something funny is happening with some elrepo packages (kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm specifically)我们为此使用标准模式,但一些 elrepo 包(特别是 kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm)发生了一些有趣的事情

List the contents of the package列出package的内容

rpm -qlp kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm
warning: kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm: Header V4 DSA/SHA1 Signature, key ID baadae52: NOKEY
config-4.4.236-x86_64
cpupower.config
cpupower.service
kernel-lt-4.4.spec
linux-4.4.236.tar.xz 

List the contents of a cpio archive列出 cpio 存档的内容

We see linux-4.4.236.tar.xz .我们看到linux-4.4.236.tar.xz So, we'll use the rpm2cpio method and check the contents of the cpio archive but we've a problem as the table lacks linux-4.4.236.tar.xz因此,我们将使用 rpm2cpio 方法并检查 cpio 存档的内容,但我们遇到了问题,因为该表缺少linux-4.4.236.tar.xz

rpm2cpio kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm |cpio -t
config-4.4.236-x86_64
cpupower.config
cpupower.service
kernel-lt-4.4.spec

Extract contents from the archive从档案中提取内容

When we extract, we see all the items from the table and not linux-4.4.236.tar.xz当我们提取时,我们看到表中的所有项目,而不是linux-4.4.236.tar.xz

rpm2cpio kernel-lt-4.4.236-1.el7.elrepo.nosrc.rpm |cpio -idv
config-4.4.236-x86_64
cpupower.config
cpupower.service
kernel-lt-4.4.spec
514 blocks

This is a NO source RPM and according to this blog post this class of package does not contain source这是一个无源 RPM,根据这篇博文,package 的 class 不包含源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM