Error during installation on Linux when previous version of BricsCAD is detected

Symptoms

Trying to install newer version of BricsCAD, when the old version is present, may fail if the new version come with changes (updates) under /var/bricsys/RenderMaterials.

Out of disk space considerations, the /var/bricsys/RenderMaterials folder is intended to be reused for all BricsCAD versions.

Cause

By default, conflicting files cannot be overwritten without removing the old version of BricsCAD package.

Solution

On Ubuntu
First, check if conflicting files are under /var/bricsys/RenderMaterials directory.

Overwrite conflicting files with the following command:

sudo dpkg -i overwrite BricsCAD-*.deb
On Fedora/OpenSUSE
Check if conflicting files are under /var/bricsys/RenderMaterials directory.

Launch the command:

sudo rpm -ivh --replacefiles BricsCAD-*.rpm