Linux mint удалить firefox

Removing Firefox in Ubuntu with all add-ons like it never existed

I have been using Firefox for a long time in Ubuntu, I downloaded some add-ons but it made firefox extremely slow, even if I remove them nothing will change. I tried to remove Firefox also, but re-installing it will somehow recover the same Firefox I had- it seems it write some info somewhere that even if you remove Firefox, it will keep them. Moreover, I am not able to use see any flash videos or website with Firefox(chrome works fine).. Honestly I tampered with plug-in settings in Firefox that this happened. But right now I can’t do anything to overwrite the setting. My question is how I can remove Firefox in a way to remove any previous traces and re-install a new version like for the first time?

In recent Ubuntu releases, Firefox could also be installed as a snap. See Uninstalled Firefox still here (Ubuntu 19.10)

9 Answers 9

Delete Firefox and all it’s data:

Thanks are also due to snap question and its answers and comments

I think this can be done in six easy steps, please edit my answer — or tell me to — if it’s not complete:

Run type firefox . You will either get

Output Firefox has been installed by
firefox is /usr/bin/firefox apt
firefox is /snap/bin/firefox snap

Apt and snap are ways to install packages. (package managers) If the answer is apt, follow these steps . Steps for snap are after it.

Steps to follow if apt

  1. Run sudo apt-get purge firefox Unless you are serious about data privacy this step should be enough
  2. Delete .mozilla/firefox/ in your home directory, should it still be there
  3. Delete .macromedia/ and .adobe in your home directory, these can contain «Flash Cookies» stored by the browser. The same is true, if applicable, for Silverlight (Moonlight) and other plugins, they can allow websites to store data on your computer.
  4. Delete /etc/firefox/ , this is where your preferences and user-profiles are stored
  5. Delete /usr/lib/firefox/ should it still be there
  6. Delete /usr/lib/firefox-addons/ should it still be there

Mind the periods in front of file- and directory names: They indicate a hidden directory. You can tell your File Browser to show them by pressing Ctrl + H .

The 4th and 5th step must be done with superuser privileges. To start a the File Browser as a superuser, press Alt + F2 and enter gksu nautilus .

Finally, restart your computer to get rid of all temporary files. This should remove all traces of firefox ever being there.

  • Don’t rely on this method if you’ve got sensitive information to protect! Deleting a file, in most cases, only means deleting a reference to it. The raw data will still be on your hard drive, and the proverbial bond-villain will be able to recover them. I’m only mentioning this in case it’s applicable to anybody who reads this. The only way to really get rid of data is to shred the hard drive to bits.
Читайте также:  Linux удалить файлы старше одного дня

Steps to follow if snap

You answered the OP’s question exactly as asked in the title, but this is yet another case of the person really asking for something somewhat different, which is how to use Firefox in its original pristine state. This is better answered by this other answer with less upvotes: askubuntu.com/a/16773/43660

Only steps 2 and 3 are required to meet the aims of resetting firefox to being like new. The other steps remove the binaries of firefox from your system, but they don’t have any «state» or information about what you did. Also, it is incorrect that /etc/firefox is where your preferences are stored — they are stored in ~/.mozilla/firefox/

I found this answer very helpfull, it’s answering the op question which also made me come to this thread in the first place. so thank you for answering to the question and not to somthing else.

All the answers given so far are way too drastic. You don’t need to apt-get purge firefox or rm -rf ~/.mozilla to get what you want.

Here’s the thing. Firefox doesn’t store any user data in itself. What it does instead is create what’s known as a «user profile» — a directory in your home directory — and store all your data in there. And by data I mean everything — add-ons, themes, browsing history, stored passwords, and on and on. (The actual location of your profiles in the filesystem varies by OS; on Ubuntu and other Linuxes, it’s generally in .mozilla/firefox in your home directory.) Data in the user profile is completely separate from the Firefox application itself, so removing Firefox via apt-get or the like won’t delete the profile data; when you reinstall Firefox later, it’ll just look up your profile and reload it all, which can be frustrating if you don’t realize what’s going on.

When you first use Firefox, it silently creates a default profile for you, and uses that profile from that day onward. But you don’t have to use that profile. Firefox supports multiple profiles, and you can switch back and forth between them at will. This means that to get Firefox back to the way it was the day you first installed it, you don’t have to touch the Firefox binaries at all — all you have to do is create a new, empty profile, and use it instead of your old, cluttered one. Restart Firefox and it’ll be like you never ran it before.

Here’s how to create a new FF profile in Ubuntu:

  • Close all running Firefox windows
  • Open a console window (profile management is only accessible via the command line)
  • Run the following command at the prompt: firefox -ProfileManager
  • This will launch the Firefox Profile Manager — a dialog box that looks like this:

Firefox profile manager

Yours will probably only have one profile listed — that’s your current, default profile, with all your add-ons and other stuff. It’ll have a name that starts with a string of random characters; that’s because FF had to come up with a name for it when it automatically created the profile, so it just used a random string.

  • Click the «Create Profile» button. This will launch a wizard walking you through defining a new, empty profile. When that process is complete you’ll be returned to the Profile Manager dialog box, now with two profiles listed, your old one and your new one.
  • Select your newly created profile.
  • Optional: if you want Firefox to use your new, empty profile from now on by default, check the «Don’t ask at startup» box. If you’d prefer FF to prompt you for which profile you want to use each time you run it, leave that box unchecked.
  • Click «Start Firefox».
Читайте также:  При загрузки linux зависает при

Now Firefox will restart, completely fresh and new as the first day you downloaded it. Problem solved. And if you ever need to retrieve something from your old profile, like your old bookmarks, say, all your old data is archived in your old profile, so you can safely retrieve it later.

Источник

Linux Mint Forums

How do I completely uninstall Firefox from Linux Mint [SOLVED]

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

How do I completely uninstall Firefox from Linux Mint [SOLVED]

Post by irsatist » Sun Dec 27, 2020 3:49 pm

I’m a new Linux mint 20 mate user. i would never use firefox again. opera is my only choice on every platform.

So I just ran purge as explained. it seems to remove firefox. however:
1)There still are folder named firefox and firefox-addons under /usr/lib and also named firefox under /etc. the strange part is, i can’t right click and delete them. do i need to remove them and how?
2)rm didn’t work for /.mozilla/fireforx because there is no such directory. what shoud i do.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Larry78723 Level 14
Posts: 5481 Joined: Wed Jan 09, 2019 7:01 pm Location: Jasper County, SC, USA

Re: How do I completely uninstall Firefox from Linux Mint

Post by Larry78723 » Sun Dec 27, 2020 4:27 pm

Please post the command you used to purge firefox.

When you open a terminal, you’re in your /home/username folder so the / in front of .mozilla/firefox is looking for it in your root. It’s in your /home/username so the command should be rm -R .mozilla/firefox .

Image

If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject , it helps other users looking for help, and keeps the forum clean.

Kseanfitz_1 Level 3
Posts: 132 Joined: Mon Jun 15, 2020 2:32 pm Location: USA love it or leave it!

Re: How do I completely uninstall Firefox from Linux Mint

Post by Kseanfitz_1 » Sun Dec 27, 2020 4:35 pm

/usr/lib
are in the root.
when in the / (root) directories or sub-directories you need to be superuser. either use «sudo» (without the quotes ) before a command in CLI (command line interface) or if you file browser to the location do a «right click» and chose «open as root» provide your password in the pop-up and a new file browser window will open that you will have root authority to write, modify, and delete files and folders.

Читайте также:  Задать приоритет процессу linux

Flemur Level 20
Posts: 10097 Joined: Mon Aug 20, 2012 9:41 pm Location: Potemkin Village

Re: How do I completely uninstall Firefox from Linux Mint

Post by Flemur » Sun Dec 27, 2020 4:37 pm

irsatist wrote: ⤴ Sun Dec 27, 2020 3:49 pm 1)There still are folder named firefox and firefox-addons under /usr/lib and also named firefox under /etc. the strange part is, i can’t right click and delete them. do i need to remove them and how?

You need to do it as root/sudo, but you might as well leave them there. Anyway, I don’t think they’re actually part of the firefox installation, else the purge would have removed them.

Besides the spelling error, /.mozilla would be a system file directory under «/».

You want to delete ~/.mozilla/firefox and ~/.cache/mozilla

rm -r ~/.mozilla/firefox rm -r ~/.cache/mozilla

Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up. right?

Re: How do I completely uninstall Firefox from Linux Mint

Post by irsatist » Sat Jan 09, 2021 4:07 am

sudo apt-get purge firefox

When you open a terminal, you’re in your /home/username folder so the / in front of .mozilla/firefox is looking for it in your root. It’s in your /home/username so the command should be rm -R .mozilla/firefox .

Re: How do I completely uninstall Firefox from Linux Mint

Post by irsatist » Sat Jan 09, 2021 4:14 am

Kseanfitz_1 wrote: ⤴ Sun Dec 27, 2020 4:35 pm /usr/lib
are in the root.
when in the / (root) directories or sub-directories you need to be superuser. either use «sudo» (without the quotes ) before a command in CLI (command line interface) or if you file browser to the location do a «right click» and chose «open as root» provide your password in the pop-up and a new file browser window will open that you will have root authority to write, modify, and delete files and folders.

Re: How do I completely uninstall Firefox from Linux Mint

Post by irsatist » Sat Jan 09, 2021 4:23 am

irsatist wrote: ⤴ Sun Dec 27, 2020 3:49 pm 1)There still are folder named firefox and firefox-addons under /usr/lib and also named firefox under /etc. the strange part is, i can’t right click and delete them. do i need to remove them and how?

You need to do it as root/sudo, but you might as well leave them there. Anyway, I don’t think they’re actually part of the firefox installation, else the purge would have removed them.

Besides the spelling error, /.mozilla would be a system file directory under «/».

You want to delete ~/.mozilla/firefox and ~/.cache/mozilla

rm -r ~/.mozilla/firefox rm -r ~/.cache/mozilla

sorry for getting back so late. it’s been a busy new year.

thanks for the correction and the delete commands. it worked for the folders that you mentioned. But I realized an strange things afterwards..

I still can see the deleted folders in the result.. (

I can’t find the deleted directories in terminal or by file browser. i’m sure they are not there. BUT, it keeps showing up in location command result. is that even normal ?

Last edited by Moem on Sat Jan 09, 2021 5:13 am, edited 1 time in total.
Reason: Fixed the code tags.

Источник

Оцените статью
Adblock
detector