Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: zsh check if file exists 
Shell :: edit bash profile 
Shell :: how to install imagick 
Shell :: reverse string in shell script 
Shell :: how to restart raspberrypi via ssh 
Shell :: nuget equivalent of npm install 
Shell :: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 
Shell :: ngx-material-file-input 
Shell :: valgrind memory leak 
Shell :: linux delete user password 
Shell :: powershell script path 
Shell :: git untrack 
Shell :: linux go to home directory 
Shell :: upgrade ionic capacitor 
Shell :: run rust book on terminal 
Shell :: start xampp 
Shell :: adding remote origin git 
Shell :: git always commit with gpg 
Shell :: install node using nvm windows 
Shell :: git reset back to previous pushed commit 
Shell :: mac update path permanently 
Shell :: wsl 2 reboot ubuntu 
Shell :: git get repo with composer 
Shell :: get request linux terminal 
Shell :: linux bash clean up log file 
Shell :: npm uninstall 
Shell :: remove file from stage git 
Shell :: change commit author 
Shell :: linux convert mp3 to ogg 
Shell :: git add git commit 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =