List/Search Packages installed

/ Published in: Bash
Save to your folder(s)

List all packages that are installed in your system

Copy this code and paste it in your HTML
  1. dpkg -l
  2. # you can alternatively search for packages using the following
  3. dpkg -l | grep [enter_search_term_here]
  4. # or if you like shortcuts, here is one that you can put in ~/.bashrc or ~/.bash_profile
  5. # instead type in dpkg ... you can use : find_package "name_of_package"
  6. find_package () { dpkg -l | grep "$1"; }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.