Hi,
I use yast to make updates on a Leap 15.5 system of mine to make an update and I get and error of conflicting files:
File /usr/bin/clang-cpp
from install of
clang15-15.0.7-150500.4.9.6.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)
conflicts with file from package
clang13-13.0.1-bp155.6.38.x86_64 (@System)
Does anyone else have this issue and is there a solution for this ?
Thanks.
If instead of YaST to do updates you use zypper up, you’ll be presented with a list of choices how to proceed in this odd kind of situation that happens when version numbers are mixed in with package names. As inferred by the previous response, chose the upgrade path of removing the old.
You can use update-alternatives to switch between the Versions:
opensuse155:/home/stephan # update-alternatives --config clang
There are 2 choices for the alternative clang (providing /usr/bin/clang).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/clang-15.0.7 1507 auto mode
1 /usr/bin/clang-13.0.1 1301 manual mode
2 /usr/bin/clang-15.0.7 1507 manual mode
Press <enter> to keep the current choice[*], or type selection number:
As Suggested by @Sauerland I proceeded with the install (on yast) but before that I looked into the update-alternatives issue.
bash:/home/user55> ls -al /usr/bin/clang
lrwxrwxrwx 1 root root 23 Feb 21 16:40 /usr/bin/clang -> /etc/alternatives/clang
bash:/home/user55> ls -al /etc/alternatives/clang
ls: cannot access '/etc/alternatives/clang': No such file or directory
And indeed there was no /etc/alternatives/clang directory.
After this I made the update and issue the same commands:
result was …the same …
bash:~/home/user55> ls -al /usr/bin/clang
lrwxrwxrwx 1 root root 23 Jul 3 14:06 /usr/bin/clang -> /etc/alternatives/clang
bash:~/home/user55> ls -al /etc/alternatives/clang
ls: cannot access '/etc/alternatives/clang': No such file or directory`
I also tried to check just to see if indeed the update-alternatives command would work …
sudo update-alternatives --config clang
update-alternatives: error: no alternatives for clang
On yast both packages clang13 and clang15 are present and installed.
yet there is no update-alternatives for clang …
But furthermore:
On Yast I get 3 Different clang packages installed.
I have done exactly that update and still the results are the ones I have shown.
There is no update-alternate.
And there are three versions of clang on my system: