Ubuntu – uninstalling flash plugin completely

10.10flash

i've made the mistake of installing firefox flash plugin, which is horribly buggy, unstable and leaky. I need to banish this piece of rubbish out of my precious ubuntu workstation. I tried this by doing

sudo apt-get remove flashplugin-installer

but that just removes the installer, not the library

what package do i need to remove to completely uninstall this?

Best Answer

I just looked in the pre processing scripts of flashplugin-installer, and it appears to remove the libraries correctly. Ifflashplugin-installer is still installed you can look in /var/lib/dpkg/info/flashplugin-installer.prerm. to confirm it.

Otherwise, you can run the commands manually:

VARIANTS="iceape iceweasel mozilla firefox xulrunner midbrowser xulrunner-addons"
sudo update-rc.d -f flashplugin-installer remove >/dev/null 2>&1
sudo rm -rf /usr/lib/flashplugin-installer-unpackdir
sudo rm -rf /usr/lib/flashplugin-installer/*
sudo rm -f /var/lib/flashplugin-installer/*
sudo rm -rf /var/cache/flashplugin-installer-unpackdir
sudo rm -rf /var/cache/flashplugin-installer
sudo rm -f /usr/share/ubufox/plugins/libflashplayer.so
sudo rm -f /usr/share/ubufox/plugins/npwrapper.libflashplayer.so
for p in $VARIANTS; do
sudo update-alternatives --quiet --remove "$p-flashplugin" /usr/lib/flashplugin-installer/libflashplayer.so;
done
for p in $VARIANTS; do
sudo update-alternatives --quiet --remove "$p-flashplugin" /var/lib/flashplugin-installer/npwrapper.libflashplayer.so;
done