Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

How to get rid of tor browser using command line

Discussion in 'Command Line' started by linux-man, May 22, 2018.

  1. linux-man

    linux-man New Member

    May 22, 2018
    Likes Received:
    How do I get rid of tor browser and tor bundle using command line using terminal gui. I have Zorin core on virtual box.
    I general when I want to remove any program, what information about that program will be required before heading to command line in terminal GUI and typing remove? Thanks in advance.

    (Log in to hide this advertisement)

  2. atanere

    atanere Moderator
    Gold Supporter

    Apr 6, 2017
    Likes Received:
    The Tor Project people say just to delete the folder where it's located (unless you installed from source code).

    You should know the package name to remove with the command line. For example:
    sudo apt remove firefox
    You may can guess a package name and confirm it like this:
    which firefox
    Rob and wizardfromoz like this.
  3. JasKinasis

    JasKinasis Well-Known Member

    Apr 25, 2017
    Likes Received:
    I'm not a Zorin user, but Zorin is based on Ubuntu isn't it?

    If so, if you have apt-file installed - you can find out what package a file, library or executable came from.

    If you don't have apt-file, you can install it like this:
    sudo apt install apt-file
    Once you have apt-file installed, you will need to update its cache using:
    sudo apt-file update
    Once you have updated apt-file's cache, you can find out which package installed an executable like this:
    apt-file search $(which executableName)
    Or more simply:
    apt-file search executableName
    Where executableName is the name of the executable you are interested in.

    Alternatively, you could also search using dpkg-query - which will definitely be installed because it is one of the lower-level package management tools for Debian based systems:
    dpkg-query -S $(which executableName)
    dpkg-query -S executableName
    Off the top of my head, to remove tor - I think the packages you will need to remove are simply called tor and torbrowser-launcher.

    So to remove them (assuming I have remembered the package names correctly):
    sudo apt remove --purge tor torbrowser-launcher
    That should remove tor and the tor launcher. The --purge setting will also remove any configuration files that they have left behind.

    After removing the packages, you might also want to use:
    sudo apt autoremove --purge
    This will remove any unused packages/dependencies that were left behind. And again, using the --purge option with apt autoremove will remove any left-over configs for unneeded packages.

    The reason for doing this is:
    When you uninstall a package, sometimes it leaves behind some of its auto-installed dependencies - in case they are required by other programs/packages. The apt autoremove command will check your system for any unused packages that can safely be removed and will remove them for you.
    #3 JasKinasis, May 22, 2018
    Last edited: May 22, 2018
    Rob and atanere like this.

Share This Page