Linux: Display rpm package architecture

Linux: Display rpm package architecture

To display the architecture of an RPM package in Linux, you can use the "rpm" command with the "-q" and "-i" options.

For example, to display the architecture of the package "package.rpm", you can use the following command:

rpm -q --queryformat "%{ARCH}" -i package.rpm
Source‮:‬www.lautturi.com

This will display the architecture of the package, such as "i386", "x86_64", or "noarch".

You can also use the "rpm" command with the "-qp" option to display the architecture of an RPM package that is not yet installed. For example:

rpm -qp --queryformat "%{ARCH}" package.rpm

This will display the architecture of the package "package.rpm" without installing it.

Note: The RPM package manager is used on some Linux distributions, such as Red Hat, CentOS, and Fedora. If your distribution uses a different package manager, you may need to use a different command or tool to display the architecture of a package.

Created Time:2017-10-30 10:17:44  Author:lautturi