Get list of installed packages in Ubuntu and uninstall any packages.

Stan Lee. July 23, 2016 Comments

Open a terminal and type

To list all the packages.

$ dpkg --list
$ dpkg --l
$ dpkg --get-selections

To Uninstall any of the package.

$ sudo apt-get purge <package_name>


Also, the easiest way to install these services is using tasksel

$ sudo apt-get install tasksel
$ sudo tasksel
  (Select LAMP server and follow instructions)
$ sudo apt-get install phpmyadmin


  • ubuntu
  • uninstall
  • dpkg
  • package-management