Tuesday, April 19, 2022

[SOLVED] how do I display file permissions of rpm internal contents

Issue

I want to see what permissions the files within an rpm will "have" after the rpm is installed. But without having to install the rpm.


Solution

The --dump option to rpm gives you this information (as well as other information).

rpm -qp --dump "$RPM_PACKAGE_FILENAME"


Answered By - Etan Reisner
Answer Checked By - David Marino (WPSolving Volunteer)