для этого является
cat /var/log/apt/history.log | grep "\ install\ " | awk '/ install / {printf "%s ",$4 }'