dpkg -l > pkgs.list grep " install " /var/log/dpkg.log apt list --installed dpkg -l | awk '/^ii/{print $2}'