Re: Various bugs with the new 5.7 kernel on Fedora 32

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

 




On 7/27/20 12:23 AM, Todd Zullinger wrote:
Refer to the "SPECIFYING PACKAGES" section in the dnf man
page.  It explains the syntax options you can use to specify
a <package-spec>, which is used by many dnf commands, like
dnf remove.

The doc is all good but without some real examples I find it difficult to translate the doc to actual commands.

But that's probably because I am a noob and not use to reading docs seriously yet.

Perhaps this is a minor point, but it's good to get in the
habit of escaping shell wildcard characters, like '*' in the
above command.
I didn't know that. I will do that from now on, thanks.
As you'll find in the man page, dnf accepts glob patterns,
which are much like shell glob patterns.  You can use them
to remove all 5.7 kernels, something like:

     $ sudo dnf remove 'kernel*-5.7.*'

Would this have had the same effect as:

    sudo dnf remove $(rpm -qa | grep ^kernel | grep 5\.7)

??

Similarly, you can use the patterns to avoid the need for
the pipe to grep above (which also didn't need the -i
option, as your argument is numeric):

     $ sudo dnf list installed 'kernel*-5.7.*'
Yeah I tried this but this does not give the name of the packages in a way I can use in 'dnf remove' command, thus it was not very helpful.

--
Regards,
Sreyan
_______________________________________________
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux