apt see installed packages

C++
apt list --installed
Source

Also in C++: