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

    Joined:
    May 22, 2018
    Messages:
    1
    Likes Received:
    0
    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

    Joined:
    Apr 6, 2017
    Messages:
    1,701
    Likes Received:
    1,799
    The Tor Project people say just to delete the folder where it's located (unless you installed from source code).
    https://www.torproject.org/docs/faq.html.en#HowUninstallTor

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

    JasKinasis Well-Known Member

    Joined:
    Apr 25, 2017
    Messages:
    303
    Likes Received:
    574
    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:
    Code:
    sudo apt install apt-file
    Once you have apt-file installed, you will need to update its cache using:
    Code:
    sudo apt-file update
    Once you have updated apt-file's cache, you can find out which package installed an executable like this:
    Code:
    apt-file search $(which executableName)
    Or more simply:
    Code:
    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:
    Code:
    dpkg-query -S $(which executableName)
    
    Or:
    Code:
    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):
    Code:
    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:
    Code:
    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