On 03/08/18 20:42, Robert P. J. Day wrote:
On Thu, 8 Mar 2018, Ed Greshko wrote:
On 03/08/18 18:45, Robert P. J. Day wrote:
i've pawed over the man page for dnf and i can't figure out how to do something simple -- i want to restrict the output of commands like "dnf search" or "dnf info" to just a selected set of architectures.
Sure.
I'll give you a hint. Just "exclude" the architecture of the packages you don't want. You'll have to use a "glob" to do it.
Of course, if you give up, I'll tell you what you need to know. But, sometimes it is better to try a bit more and learn a bit along the way.
ed: your frequently condescending replies to me wherein you lecture to me as if i'm a 12-year-old is getting a little tiring. i am well aware of dnf's "--exclude" option, but that option simply allows (if i read this correctly) globbing on the entire package name, architecture and everything else in between.
[egreshko@meimei ~]$ dnf --excludepkgs=*686 info 389-admin Last metadata expiration check: 6:18:25 ago on Thu 08 Mar 2018 03:05:51 PM CST. Available Packages Name : 389-admin Version : 1.1.46 Release : 1.fc27.3 Arch : x86_64 Size : 408 k Source : 389-admin-1.1.46-1.fc27.3.src.rpm Repo : fedora Summary : 389 Administration Server (admin) URL : http://www.port389.org/ License : GPLv2 and ASL 2.0 Description : 389 Administration Server is an HTTP agent that provides management : features for 389 Directory Server. It provides some management web : apps that can be used through a web browser. It provides the : authentication, access control, and CGI utilities used by the : console.
V.S.
[egreshko@meimei ~]$ dnf info 389-admin Last metadata expiration check: 6:19:02 ago on Thu 08 Mar 2018 03:05:51 PM CST. Available Packages Name : 389-admin Version : 1.1.46 Release : 1.fc27.3 Arch : i686 Size : 408 k Source : 389-admin-1.1.46-1.fc27.3.src.rpm Repo : fedora Summary : 389 Administration Server (admin) URL : http://www.port389.org/ License : GPLv2 and ASL 2.0 Description : 389 Administration Server is an HTTP agent that provides management : features for 389 Directory Server. It provides some management web : apps that can be used through a web browser. It provides the : authentication, access control, and CGI utilities used by the : console.
Name : 389-admin Version : 1.1.46 Release : 1.fc27.3 Arch : x86_64 Size : 408 k Source : 389-admin-1.1.46-1.fc27.3.src.rpm Repo : fedora Summary : 389 Administration Server (admin) URL : http://www.port389.org/ License : GPLv2 and ASL 2.0 Description : 389 Administration Server is an HTTP agent that provides management : features for 389 Directory Server. It provides some management web : apps that can be used through a web browser. It provides the : authentication, access control, and CGI utilities used by the : console.
Maybe the man page was too long?
given that dnf recognizes both "--arch" and "--forcearch" for some operations, i was hoping the same *architecture-specific* selection could be applied to queries.
That isn't what you want...