# List out all software installed on the machine
dpkg --list
# remove the software you want using the following command
sudo apt-get --purge remove NAME_SOFTWARE
# e.g.
sudo apt-get --purge remove gimp
# use this for centos
sudo yum remove [pkg_name]