Re: Fedora 30 System-Wide Change proposal: Remove the Group: Tag From All Packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "ZJ" == Zbigniew Jędrzejewski-Szmek <zbyszek@xxxxxxxxx> writes:

ZJ> Can we patch rpm not to show this useless line?

In the context of what I wrote, there's no "useless line".  I assume
you're talking about rpm -qi output, but I was being more general than
that.  Certainly we wouldn't patch out the GROUP querytag, for example,
or change the RPM header format.  The group field in the header will
always contain some data, and if the specfile didn't specify a group
then 'Unspecified' will be stored there.

Now, the 'rpm -qi' output is actually something you can change.  It's
defined in /usr/lib/rpm/rpmpopt-(version).  I have no idea if the Fedora
RPM maintainers, or upstream RPM, would be willing to patch that file,
since it can show valid info and Fedora isn't the only place where
people might acquire packages.  Plus I figure that if anyone really
cared about what was shown there, we would have patched out the
'Relocations:' line about a decade ago.  Really, 'dnf info' output is
probably more relevant at this point.

However, if you really don't want to see it, you can just put an 'rpm
alias --info' line in /etc/popt or ~/.popt.  I don't believe that RPM
query expressions are sufficiently powerful to suppress the Group: line
if the group is 'Unspecified', but I'd be happy if I were wrong.

rpm     alias --info --qf '\
Name        : %{NAME}\n\
%|EPOCH?{Epoch       : %{EPOCH}\n}|\
Version     : %{VERSION}\n\
Release     : %{RELEASE}\n\
Architecture: %{ARCH}\n\
Install Date: %|INSTALLTIME?{%{INSTALLTIME:date}}:{(not installed)}|\n\
Size        : %{LONGSIZE}\n\
%|LICENSE?{License     : %{LICENSE}}|\n\
Signature   : %|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|\n\
Source RPM  : %{SOURCERPM}\n\
Build Date  : %{BUILDTIME:date}\n\
Build Host  : %{BUILDHOST}\n\
Relocations : %|PREFIXES?{[%{PREFIXES} ]}:{(not relocatable)}|\n\
%|PACKAGER?{Packager    : %{PACKAGER}\n}|\
%|VENDOR?{Vendor      : %{VENDOR}\n}|\
%|URL?{URL         : %{URL}\n}|\
%|BUGURL?{Bug URL     : %{BUGURL}\n}|\
Summary     : %{SUMMARY}\n\
Description :\n%{DESCRIPTION}\n' \
        --POPTdesc=$"list descriptive information from package(s)"

 - J<
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/STWLNXEFU3VJ6C6ETBX42FQURMOCETSK/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux