On 7/29/20 2:57 PM, Sreyan Chakravarty wrote:
I tried:
$ dnf repoquery --installed kernel*-5.6.*
kernel-0:5.6.10-300.fc32.x86_64
Where is the extra 0 in " kernel-0 " coming from ? If you see the rpm
-qa output the zero is not present there:
That seems like an odd command, but that "0:" is the epoch (0 is also no
epoch). That command includes the epoch in the listing.
$ rpm -qa | grep ^kernel | grep '5\.6'
kernel-5.6.8-200.fc31.x86_64
rpm by default does not include the epoch info. It's rarely relevant.
How do I know which is the epoch and the version and the release in
NEVRA ? And are there any standard separators between them ?
kernel-5.6.10-300.fc32.x86_64
Which is what here ? I know the name is 'kernel' that one was easy. :-)
There's no epoch shown there.
Here's a fun command for you to try (all on one line):
rpm -q --qf "Name: %{NAME}\nEpoch: %{EPOCH}\nRelease:
%{RELEASE}\nVersion: %{VERSION}\n" kernel
"rpm --querytags" will give you a list of all the tags you can use there.
Thanks for your help. I want to use DNF wherever I can since it is the
more standard way to do package queries.
rpm is probably faster, but can only give you information about what is
currently installed on your computer. dnf can look through all the
repository files to get you info on anything that's available.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx