file command does not understand xz-compressed initrd

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • file-5.04-6.el6

Issue

  • file command does not understand xz-compressed initrd.
$file initrd.img 
initrd.img: data

Resolution

Root Cause

  • Previously, the file utility did not parse the name of an RPM package from the RPM file. As a consequence, the utility did not print the name of the RPM package. This update adds a "magic" pattern for RPM package name parsing, and the name is now printed as expected.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments