For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

uninstalling older version and uninstalling 7.4.0

Archak Goel's picture

I had liboce-ocaf-dev 0.18.2 installed on my Ubuntu 18.04 and wanted to shift to the latest release of open cascade 7.4.0. Based on the installation instruction recommendations, I removed to the liboce-ocaf-dev package since its an older version. But that package comes with some liboce* dependencies as well, below:-
liboce-foundation-dev/bionic,now 0.18.2-2build1 amd64,
liboce-foundation11/bionic,now 0.18.2-2build1 amd64,
liboce-modeling-dev/bionic,now 0.18.2-2build1 amd64, 
liboce-modeling11/bionic,now 0.18.2-2build1 amd64, 
liboce-ocaf-dev/bionic,now 0.18.2-2build1 amd64, 
liboce-ocaf-lite-dev/bionic,now 0.18.2-2build1 amd64, 
liboce-ocaf-lite11/bionic,now 0.18.2-2build1 amd64,
liboce-ocaf11/bionic,now 0.18.2-2build1 amd64,

Do I need to remove them as well, if I want to install and work with 7.4.0 now? Or the 7.4.0 assumes these dependencies will be there on Ubuntu?

I sometimes need to go back and forth between version due to some compatibility issues in my application, is there a easy way to want to uninstall 7.4.0 ?

Kirill Gavrilov's picture

Open CASCADE is not a library, but a framework, which means it consists of a lot of libraries depending on each other.
Mixing libraries of different OCCT versions is usually not supported - most likely such combination will result in runtime linkage errors or crashes.
Therefore, all liboce packages should be removed, not just liboce-ocaf-dev.

As for development, it is a common practice having multiple OCCT versions at different installation paths.
You just need to ensure that your application is built (configure CMake / header / library folders properly) and run (configure batch scripts / LD_LIBRARY_PATH) against proper OCCT location.

Archak Goel's picture

I see, thanks for clarifying about the dependencies, Kirill. When I want to uninstall Open CASCADE 7.4.0 and its all dependencies from my linux machine, is there a neat way to do it that's provided by the framework? For example, for the liboce-ocaf-dev I install it and remove it with a single "apt" command - apt install or apt remove. I was wondering if there is something similar supported by the framework?

Kirill Gavrilov's picture

Linux packaging is not part of OCCT - it is done by Linux maintainers. I suppose you may try using mask:

sudo apt-get remove 'liboce.*'

Using make install alike commands has no "undo" - you should care about installation path and cleanup destination on your own.
Or just avoid installing into system paths (normally, this requires root rights, so that this cannot be done accidentally) - by specifying install location to CMake configure or by chroot tools.
The latter one is commonly used for preparation of binary Linux packages - making an own Debian package for OCCT (can be complicated) or configuring a Launchpad repository with newer OCCT (if there are any) might be alternatives.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.