Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to check installed packages in linux command

dpkg-query --list | grep -i nano
ii  nano    2.9.3-2    amd64    small, friendly text editor inspired by Pico
Comment

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 :: push an existing github repository 
Shell :: installing eth-brownie 2022 
Shell :: see ADS content 
Shell :: create tar file appwrite 
Shell :: how to close serveice on perticular port number 
Shell :: Installing nvidia-docker on linux mint 
Shell :: bash get length of every nth row 
Shell :: arch linux select java version 
Shell :: command not found: gradlew.bat 
Shell :: linux delete empty line "tr -d" 
Shell :: linux replace string in all files 
Shell :: nmcli connection status 
Shell :: how to change date of file in linux 
Shell :: almofire pod install 
Shell :: How do I get my drive letters back? 
Shell :: firefox custom search engine 
Shell :: ubuntu apt uninstall 
Shell :: how to install wps office in ubuntu 
Shell :: openssl generate certificate 
Shell :: mysql inline password command line 
Shell :: Katie Leung 
Shell :: ubuntu history select 
Shell :: awk get index of matching substring 
Shell :: start mongod ubntu 
Shell :: # /bin/bash meaning 
Shell :: redis cli docker 
Shell :: sudo command without giving password 
Shell :: unstage git add 
Shell :: add hp printer linux 
Shell :: no such file or directory scandir node-sass/vendor 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =