Uninstalling FreeCAD Ubuntu 20.04

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
anvoice
Posts: 10
Joined: Fri Jul 23, 2021 1:59 pm

Uninstalling FreeCAD Ubuntu 20.04

Post by anvoice »

Hello, I am trying to uninstall FreeCAD .18.4 from my Ubuntu 20.04 machine in order to upgrade to .19. I found no way to upgrade directly, and so would like to resort to the uninstall. I originally installed FreeCAD using

Code: Select all

sudo apt install freecad
which loaded the older version. However, after running

Code: Select all

sudo apt remove freecad
FreeCAD persists, and opens as normal with version 0.18.4. Subsequent calls to

Code: Select all

sudo apt remove freecad
say it's not installed and thus do nothing. Could anyone help me with the uninstall, or point me to a wiki that addresses this? Thanks in advance.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by PrzemoF »

Welcome to the forum!

It's rather a linux question, but I'm happy to help. After removing FreeCAD check what "which freecad" produces. To be sure also check "which FreeCAD" - some systems use different file name (e.g. my fedora)

[1] https://linux.die.net/man/1/which
anvoice
Posts: 10
Joined: Fri Jul 23, 2021 1:59 pm

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by anvoice »

Hi, thanks for the welcome and for your response! Didn't realize it's off-topic here, so really appreciate the help. "which freecad" produces "usr/bin/freecad" after the uninstall. Not sure how to proceed from here.
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by openBrain »

Could you give output of

Code: Select all

dpkg -l | grep freecad
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by PrzemoF »

No, it's not off-topic - we're easy going :D But for me it was more linux administration question.

I don't know how ubuntu packaged FreeCAD, but from a quick test you also need to remove freecad-common
anvoice
Posts: 10
Joined: Fri Jul 23, 2021 1:59 pm

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by anvoice »

The output of the dpkg command:

Code: Select all

ii  freecad-common                             0.18.4+dfsg2-1ubuntu4                 all          Extensible Open Source CAx program - common files
ii  freecad-python3                            0.18.4+dfsg2-1ubuntu4                 amd64        Extensible Open Source CAx program - Python 3 binaries
ii  freecad-runtime                            0.18.4+dfsg2-1ubuntu4                 all          Extensible Open Source CAx program - runtime files
ii  libfreecad-python3-0.18                    0.18.4+dfsg2-1ubuntu4                 amd64        Extensible Open Source CAx program - Python 3 library files
So I should remove freecad-common using "sudo apt remove freecad-common"? What about "freecad-python3" and the rest?
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by openBrain »

Code: Select all

sudo apt-get purge freecad*
sudo apt-get autoremove
heda
Veteran
Posts: 1348
Joined: Sat Dec 12, 2015 5:49 pm

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by heda »

should something like this be on the wiki?
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by openBrain »

heda wrote: Fri Jul 23, 2021 3:53 pm should something like this be on the wiki?
IMO nope. This is just how Debian and derivatives manage the packages. :)
anvoice
Posts: 10
Joined: Fri Jul 23, 2021 1:59 pm

Re: Uninstalling FreeCAD Ubuntu 20.04

Post by anvoice »

Many thanks! The purge command worked, and after adding the appropriate ppa I successfully installed 0.19.
Post Reply