0

I am new to Linux and Ubuntu, a few months ago I installed ubunutu WSL for Windows 10 and OpenFOAM 7, to learn for University. I've left it for a while but want to take a look at it again. I believe when I installed the application, I was running as root, which I now understand is a bad place to install the files. I would like to know how I can remove and uninstall everything associated with OpenFoam 7, and restore everything to how it was before, if that is possible.

I plan to restart studying OpenFOAM, but will make sure I am more comfortable with Linux programming first.

The instructions I followed are found here: https://openfoam.org/download/windows-10/

Any help would be muchly appreciated

Thanks

Josh

1 Answers1

2

The OpenFOAM 7 documentation says to install this way. If this is what you did...

sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get install openfoam7

...then this is how you uninstall:

sudo apt remove openfoam7 
sudo apt autoremove

Since you intend to return to OpenFOAM, this leaves the PPA in place, and uses 'remove' instead of 'purge' to preserve settings in /etc.

(OPTIONAL) If you want to remove the PPA entirely:

sudo add-apt-repository --remove http://dl.openfoam.org/ubuntu
sudo apt update         // Always run update after changing your sources
user535733
  • 68,493