To open a file in Linux with .rpm extension, open the terminal and run the command rpm2cpio <.rpm_file> | cpio -idmv. Replace <.rpm_file> with the rpm file you want to open. This rpm2cpio utility lets open the specified rpm file without installation.