Ubuntu – How to list broken packages in console

command linepackage-management

When I try to google how to do this, all the results I get are "How to fix broken packages".

Could you give me a hint how to only list them in the console one by one?

Best Answer

You can list broken packages :

dpkg -l | grep ^..r 

r state (on the third field) means: reinst-required (package broken, reinstallation required)

dpkg fields explanation