Is there an equivalent yum
, dnf
, or rpm
command to Debian/Ubuntu's dpkg -l
command to list both package names and installation status?
Asked
Active
Viewed 1,326 times
0

wyphan
- 105
- 5
-
That would be an _enormous_ list. It's very unlikely that you need the entire list. What exactly _do_ you intend to do? yum/dnf have some more useful options for getting at the information you want, if you can specify what that information is. – Michael Hampton Jan 08 '21 at 19:22
-
I want it to output the information for a particular package, like @Koffee 's answer below. – wyphan Jan 08 '21 at 20:17
3 Answers
1
dpkg -l
is equivalent to rpm -qa

wyphan
- 105
- 5

Chris Ruettimann
- 41
- 2
-
-
1sorry, option got lost, now it is added. dpkg and rpm are on the same level (package installation tools: install/remove/update) apt and yum are on same level (package repository management, download, ...) sorry, BR chris – Chris Ruettimann Jan 12 '21 at 06:27
-
1
yum list packagename
this will return a list of installed packages, then a list of available/not installed
For example
[root@RHELPOC ~]# yum list systemd
Updating Subscription Management repositories.
Last metadata expiration check: 1:42:23 ago on Fri 08 Jan 2021 16:47:42 GMT.
Installed Packages
systemd.x86_64 239-41.el8_3 @rhel-8-for-x86_64-baseos-rpms
Available Packages
systemd.i686 239-41.el8_3.1 rhel-8-for-x86_64-baseos-rpms
systemd.x86_64 239-41.el8_3.1 rhel-8-for-x86_64-baseos-rpms

Koffee
- 86
- 7
-
1Be aware that the `@` symbol in front of the repository name means the package is installed. Also `yum info
` will give much more detail about the package. – Michael Hampton Jan 08 '21 at 20:45
0
yum list installed
or dnf list installed
should print a list of all installed packages as well as their source repo and version.
You could pipe it into yum info
for more details: yum list installed | xargs yum info
, but this will be quite a list !

nirnaeth
- 33
- 6