Comments on: 3 Ways to List All Installed Packages in RHEL, CentOS and Fedora https://www.tecmint.com/list-installed-packages-in-rhel-centos-fedora/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 04:51:11 +0000 hourly 1 By: Ricky Tigg https://www.tecmint.com/list-installed-packages-in-rhel-centos-fedora/comment-page-1/#comment-978532 Wed, 28 Mar 2018 09:59:50 +0000 http://www.tecmint.com/?p=25026#comment-978532 Hi. Since the release of Fedora 22, in which DNF became the new default packaging tool and therefore obsoleted yum command on subsequent Fedora OSs, YUM was kept on those Fedora OSs for compatibility reason regarding Linux distributions forked from the Fedora project (Red Hat, Centos) that kept on using YUM, and will be kept for that very reason until they adopt it definitively.

I had little time before your previous post as reply, to test a command of my investigation that also relies as well on expression ‘wc -l‘ . Such command is likely to cover all current active repositories on a system which is indeed exactly what I was aiming to.

Here are for comparative purpose the following commands (by the way, there is no need to be executed as user root): ‘dnf list installed|wc -l‘, ‘rpm -qa|wc -l‘ respective outputs: 1619, 1590.

As noticeable those outputs are incorrect which is no surprise after investigation. Their subsequent commands are inappropriate; they do not reflect exclusively the current active repositories on my system, which in that case are fedora, updates which respectively contain 54 801, 13 085 packages (subsequent results are available from another command too). Good luck though in your hobby.

]]>
By: Aaron Kili https://www.tecmint.com/list-installed-packages-in-rhel-centos-fedora/comment-page-1/#comment-978299 Tue, 27 Mar 2018 08:12:13 +0000 http://www.tecmint.com/?p=25026#comment-978299 In reply to Ricky Tigg.

@Ricky

You can pipe the output of the above commands to wc utility with the -l switch, to get the number instead of a list of installed packages, like this:

# yum list installed  | wc -l
OR
# rpm -qa | wc -l
]]>
By: Ricky Tigg https://www.tecmint.com/list-installed-packages-in-rhel-centos-fedora/comment-page-1/#comment-978155 Mon, 26 Mar 2018 14:41:57 +0000 http://www.tecmint.com/?p=25026#comment-978155 Hi. For Fedora, as output, the number (not the list) of all packages (available and installed) regarding a specific added repository . Regards.

]]>