I have installed the official version of Telegram, but now I cannot remove it.
I have tried apt remove telegram
and other methods, is there any trick to remove it completely?
software-uninstalltelegramuninstall
I have installed the official version of Telegram, but now I cannot remove it.
I have tried apt remove telegram
and other methods, is there any trick to remove it completely?
Best Answer
If you downloaded Telegram directly from the website, then your package management system has no idea about it, and you have to remove the files yourself. You may find them in
~/Downloads
but perhaps you put them somewhere else, for example/opt
. If you have been using Telegram you may also find an automatically created directory in~/Downloads
calledTelegram Desktop
which contains files you have downloaded from Telegram messages. There may also be a hidden directory in your home~/.TelegramDesktop
. You can remove Telegram by deleting all these files and directories.If you can't find them do
sudo updatedb && locate Telegram
to see where they are.If you installed from the Atareao PPA then remove the PPA itself:
As mentioned by @Anwar, there is a package called
ppa-purge
which removes ppas more gracefully, attempting to restore any packages from ppa to repository versions as well as removing the ppa versions. You don't need it in this case, since there is no repository version of Telegram, however, it is the preferred way to remove ppas:This will uninstall any packages from the ppa as well as removing it.
If you installed the snap package
telegram-sergiusens
then do