1

I installed termite terminal emulator by following this Ask Ubuntu answer and I got the installation package from here on Github. Now I'm trying to uninstall it. I tried this answer, but it doesn't work.

I tried this:

$ sudo apt remove --purge termite
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package termite

The termite location on my system is:

termite location

4

Part 1

A look into the installation script shows that it downloads the source code of two pieces of software and builds and installs them using Make. As usually the build descriptions also include a rule to uninstall:

  1. Open a terminal and change the current working directory to the one you used to execute the installation script.

  2. Invoke the uninstallation rules of each installed piece of software:

    sudo make -C termite uninstall
    sudo make -C vte-ng uninstall
    
  3. Update the shared library database:

    sudo ldconfig
    
  4. Additionally and optionally you can remove the involved source code directories:

    rm -r termite vte-ng
    

Part 2

The installation script also does a few other things that you can reverse:

  • Remove the alternatives entry for termite:

    sudo update-alternatives --remove x-terminal-emulator /usr/local/bin/termite
    

    If you had selected a different default terminal emulator manually before the installation of termite you can do so again with:

    sudo update-alternatives --config x-terminal-emulator
    
  • Remove the (now broken) symbolic link to the terminfo file:

    sudo rm /lib/terminfo/x/xterm-termite
    
  • As you’ve never accepted an answer before: if this answers your question, don’t forget to click the grey ☑ under the number at the left of this text to accept it, which means “yes, this answer is valid”! – David Foerster Mar 18 '18 at 4:35
2

In general, I'd do something like this:

# if termite provided by a Ubuntu package
dpkg -S $(type -p termite)
# if it is, remove it through the package system
sudo apt-get --dry-run remove $(dpkg -S $(type -p termite) | cut -d: -f2)

but, if the dpkg -S $(type -p termite) doesn't show anthing, you installed termite another way.

locate termite

should show you all the termite files, maybe you can find a termite.tar or something.

  • 1
    Except locate will only work if locate is installed and the DB is up to date. Find is probably a better option. E.g. find / -type f -name termite – Jeremy Davis Feb 27 '18 at 3:46
  • 1
    OP didn't use the package manager to install the software. See my answer. – David Foerster Feb 27 '18 at 16:43
0

As you installed termite not through the package manager, approaches using apt and dpkg will likely not work

your best chance is do go to the directory vte-ng termite were respectively cloned to and try make uninstall (See this askubuntu question). For termite the uninstall is unfortunately not to nicely written, so it will leave man pages, desktop entry and the likes in place.

I am sure you also would like to undo the x-terminal-emulator stuff

sudo update-alternatives --remove x-terminal-emulator /usr/local/bin/termite

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.