Skip to content

Instantly share code, notes, and snippets.

@Prasad-Medisetti
Forked from leodutra/what-is-installed.sh
Created August 19, 2021 17:58
Show Gist options
  • Save Prasad-Medisetti/3160f17832b6ad36d4575b419109467f to your computer and use it in GitHub Desktop.
Save Prasad-Medisetti/3160f17832b6ad36d4575b419109467f to your computer and use it in GitHub Desktop.
List details of installed software on Linux
#http://askubuntu.com/questions/17823/how-to-list-all-installed-packages
apt --installed list
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n
#dpkg --get-selections > ~/InstalledPackages.list
#or
dpkg --get-selections | grep -v deinstall
#To save that list to a text file called packages on your desktop do this in your terminal:
dpkg --get-selections | grep -v deinstall > ~/Desktop/packages
#Alternatively, simply use
dpkg -l
#aptitude has its manner
aptitude search '~i!~M'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment