linux - Yum and RPM show that the number of installed packages is different -


[root@study ~]# rpm -qa | wc -l 777  [root@study ~]# yum list installed | wc -l 1054 

i want know why different,shoud correct number of installed packages?

example, centos 7 :

$ rpm -qa | wc -l 1733  $ yum list installed | wc -l 1757 

reason : wc count 24 "extra yum lines" ... please check :

$ yum list installed >> yum-list-installed.txt  $ rpm -qa >> list__rpm-qa.txt 

... , watch result in text files : use editor line numbers enabled.

note : above commands unprivileged user commands. no reason use root.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -