I found many cmds provide info about the OS architecture x64 or x86 like in the poll below.
getconf LONG_BIT gives
uname -m gives
dpkg --print-architecture gives
My aim was to get package architecture with short output like in the output of the poll commands and I arrived to the following:
dnf info code
dpkg -s python
Does provide such command to get short output like that ?
rpm -qa | grep packagename
rpm -qi packagename | grep Architecture
I’ve closed the poll. It doesnt serve much purpose. We can collect the different ways, and users can pick ones that work for them.
I found them short like the following:
[tarik@localhost ~]$ rpm -qa | grep weechat
[tarik@localhost ~]$ rpm -qi weechat | grep Architecture
Thank you @alciregi
No problem from my side, it was related to main tag architecture and also opportunity to use Discourse poll feature.
Sure, but polls dont fit everywhere
dpkg -s python I avoid it for now after I found Fedora doc suggests to use DNF.
Use DNF Instead of RPM Whenever Possible
➜ ~ sudo dnf info tilix | grep Architecture
[sudo] password for tarik:
Failed to synchronize cache for repo 'unitedrpms'
Ignoring repositories: unitedrpms
Architecture : x86_64