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

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -