Try the following commands, one after another. If you progress, respective folders may already be deleted:
sudo apt-get purge texlive*
rm -rf /usr/local/texlive/2012 and
rm -rf ~/.texlive2012
rm -rf /usr/local/share/texmf
rm -rf /var/lib/texmf
rm -rf /etc/texmf
sudo apt-get remove tex-common --purge
rm -rf ~/.texlive
The next step is long, but not difficult.
To remove TeX/LaTeX files from /usr/local/bin:
Prepare a listing of files in modification time order:
ls -ltrh >/tmp/rmlist
Inspect the output of /tmp/rmlist. All of the files of interest will [probably] have the same modification time. The TeX/LaTeX entry for the arev file has the modification time of interest. Find the first and last files with the modification time near the arev entry.
Create list of files to be removed:
ls -trh >/tmp/rmcmd # creates the same list as above, but with only the file names.
Make /tmp/rmcmd executable:
chmod 0700 rmcmd
Edit /tmp/rmcmd; remove all files that don't have the modification time near arev's in rmlist.
Insert the 'rm' command at the first of each line:
%s/^/ rm -rv /
Save this removal script.
Move the removal script to /usr/local/bin:
sudo mv -v rmcmd /usr/local/bin
Change to the target directory:
Run the removal script:
Watch in gratified amazement as the files go into the bit bucket.
Wipe your fingerprints from the keyboard.
sudo rm rmcmd
rm -v rmlist
I found it instructive to first look whether there's something in the
files to be deleted by 'rm -rf /xx/yy/.... 'rm -rf ' doesn't tell you
if it actually had to remove.
Thanks for the detailed instructions. It is most helpful