remove software from /opt

5,045

the software was not part of debian package. So the solution was to run the uninstall file in that folder:

sudo ./uninstall
Share:
5,045

Related videos on Youtube

as5
Author by

as5

Updated on September 18, 2022

Comments

  • as5
    as5 over 1 year

    The software installed in that folder is not shown in Ubuntu Software Center in installed section. So I cannot remove it from GUI. How can I do it with terminal? How do I get the exact name of the package to be removed?

    • Pilot6
      Pilot6 about 5 years
      How did you install that software?
    • N0rbert
      N0rbert about 5 years
      Please add output of dpkg -S /opt to the question.
  • Rinzwind
    Rinzwind about 4 years
    That could leave artifacts. An uninstall procedure should be preferred if present.
  • Mark
    Mark about 4 years
    @Rinzwind The problem is that I am yet to find an uninstall procedure that works better with applications based inside the opt folder. If you find one please post it.
  • Rinzwind
    Rinzwind about 4 years
    Oh you are misunderstanding: the uninstall should in the /opt/ directory of that software. Example: /opt/jasperreports-server-cp-5.1/ has a uninstall. The bigger installation all have one ;)
  • Mark
    Mark about 4 years
    Not all of them. I just checked chrome and it don't have an uninstall file. I also looked for this when I uninstalled Genymotion.
  • Rinzwind
    Rinzwind about 4 years
    Genymotion you start by running a binairy, it does not install. And the "help" claims there is a --uninstall option (ie. `./genymotion-{version}.bin --uninstall). Chrome will be a sandboxed install.
  • Mark
    Mark about 4 years
    That method doesn't work anymore for unknown reasons. Believe me I tried.