LINUX FUNDAMENTALS - File Descriptors and Redirections

hi, I am new to all of this and I am stuck on a very simple command :wink:
I want to find how many total packages are installed on the remote machine.
I have tried
dpkg -l | wc -l
dpkg --get-selections | grep install | wc -l
apt list | wc -l

Nothing from above is correct and every single of them has another result.
Has anyone an idea what's going wrong?

Tagged:

Comments

Sign In to comment.