Q: How to find number of packages installed?

edited January 31 in Other

I'm stuck in the section "File Descriptors and Redirections" of the academy on the question "How many total packages are installed on the target system?".

I've tried "apt list", "apt list --installed", "dpkg -l", "dpkg-query -l" and "dpkg-query -W" and piped the result of them to wc. But none of the answers seem to be correct.

Could anyone please lead me in the right direction?

Also, I'm not sure if it's ok to post this Q with the commands I already tried, if that's the case feel free to remove it. :wink:

Comments

Sign In to comment.