Package filename and label
An RPM is delivered in a single file, normally in the format:
name-version-release.architecture.rpm
such as:
libgnomeuimm-2.0-2.0.0-3.i386.rpm
Almost each rpm package has i386 or x86_64 added to file extension. However some time you may see filename such as file-version.rpm. You can list all installed rpm packages with rpm -qa command but it will not display architecture. You can run following command to display rpm package architecture:
# rpm -qa --qf "%{n}-%{arch}\n"
Another option is to use following command to display detailed information about package:
# rpm -qi {package-name}
If you wish to display package version along with architecture, enter:
# rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n" | less
No comments:
Post a Comment