This was come from http://blog.lyhdev.com/2013/01/ubuntu-linux-apt-get.html
To remove a software suite under Ubuntu, the instructions used are apt-get remove, for example:
sudo apt-get remove Texlive-full
However, since this kit was previously installed, it will be a self-installing dependency kit (dependencies), so it needs to be cleaned with autoremove.
sudo apt-get autoremove
Or add a reference at remove:
sudo apt-get remove--auto-remove
But this is not yet clean, because the preset remove acts to preserve some of the genetic relics of the set. So it needs to be removed in a purge way. A single set of pieces is removed using the Purge method:
sudo apt-get purge texlive-full
Or
sudo apt-get remove--purge texlive-full
When using Autoremove, you can add--purge parameters and remove the kit at the same time.
sudo apt-get autoremove--purge
If you have previously removed from autoremove or remove or otherwise, but have not purge removed the package, use the DPKG directive to list the order:
Dpkg-l | grep ^RC
Where ^RC represents the start of the beginning of the line with RC, this is only remove does not have purge meaning.
To batch remove these "RC" packages, you can match the grep + awk instructions.
Dpkg-l | grep ^RC | awk ' {print $} '
After the instructions are assembled, the batches are thoroughly removed from these remaining kits.
sudo apt-get purge ' dpkg-l | grep ^RC | awk ' {print $} '
This allows the system to be a little cleaner!
[Notebook] Ubuntu Linux uses the apt-get directive to remove software and clean up the left-over garbage