{"id":11303,"date":"2024-12-30T11:48:00","date_gmt":"2024-12-30T16:48:00","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11303"},"modified":"2024-12-30T11:48:00","modified_gmt":"2024-12-30T16:48:00","slug":"fedora-41-using-dnf-to-list-installed-packages","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11303","title":{"rendered":"Fedora 41 &#8211; Using DNF to List Installed Packages"},"content":{"rendered":"<p>We upgraded all of our internal servers to Fedora 41 after a power outage yesterday &#8212; had a number of issues to resolve (the liblockdev legacy config reverted so OpenHAB no longer could use USB serial devices, the physical server was swapping 11GB of data even though it had 81GB of memory free, and our Gerbera installation requires some libspdlog.so.1.12 which was updated to version 1.14 with the Fedora upgrade.<\/p>\n<p>The last issue was more challenging to figure out because evidently DNF is now DNF5 and instead of throwing an error like &#8220;hey, new version dude! Use the new syntax&#8221; when you use an old command to list what is installed &#8230; it just says &#8220;No matching packages to list&#8221;. Like there are <em>no<\/em> packages installed? Since I&#8217;m using bash, openssh, etc &#8230; that&#8217;s not true.<\/p>\n<p>Luckily, the <em>new<\/em> syntax works just fine. dnf repoquery &#8211;installed<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/12\/fedora41-dnf-installed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11304\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/12\/fedora41-dnf-installed.png\" alt=\"\" width=\"743\" height=\"244\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/12\/fedora41-dnf-installed.png 743w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2024\/12\/fedora41-dnf-installed-300x99.png 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/a><\/p>\n<p>Also:<\/p>\n<p>dnf5 repoquery &#8211;available<br \/>\ndnf5 repoquery &#8211;userinstalled<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We upgraded all of our internal servers to Fedora 41 after a power outage yesterday &#8212; had a number of issues to resolve (the liblockdev legacy config reverted so OpenHAB no longer could use USB serial devices, the physical server was swapping 11GB of data even though it had 81GB of memory free, and our &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[1415,2071,47,294],"class_list":["post-11303","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-dnf","tag-dnf5","tag-fedora","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11303"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11303\/revisions"}],"predecessor-version":[{"id":11305,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11303\/revisions\/11305"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}