Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux How to list all installed packages

#### To list all packages intentionally installed (not as dependencies) by apt commands, run the following:

(zcat $(ls -tr /var/log/apt/history.log*.gz); cat /var/log/apt/history.log) 2>/dev/null |
  egrep '^(Start-Date:|Commandline:)' |
  grep -v aptdaemon |
  egrep '^Commandline:'
  


#### Installation data also showing synaptic usage, but without details (the same with installation date) :

(zcat $(ls -tr /var/log/apt/history.log*.gz); cat /var/log/apt/history.log) 2>/dev/null |
  egrep '^(Start-Date:|Commandline:)' |
  grep -v aptdaemon |
  egrep -B1 '^Commandline:'
  


#### List all installations:
apt list --installed
 
PREVIOUS NEXT
Tagged: #linux #How #list #installed #packages
ADD COMMENT
Topic
Name
4+2 =