/usr/bin/scala missing updating from 2.12.15 to 2.12.16 or .17 rpm package
Reproduction steps
scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.12.16/scala-2.12.16.rpm
yum install scala-2.12.16.rpm
/usr/bin/scala # => file not found
scala # => file not found
or
scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.12.17/scala-2.12.17.rpm
yum install scala-2.12.17.rpm
/usr/bin/scala # => file not found
scala # => file not found
observed on CentOS Linux release 7.4.1708
Problem
After updating from Scala 2.12.15 to 2.12.16 or 2.12.17, there is no more scala in /usr/bin/ or any other default bin path.
Is the same true for 2.13.x (currently 2.13.9)?
I wondered whether the root cause might be found in https://github.com/scala/scala or in https://github.com/scala/scala-dist
In the scala-dist repo, git diff v2.12.15 v2.12.16 shows nothing changing but the copyright year.
In scala/scala, I don't see anything in the output of the same command that seems like a likely culprit. 🤔
Is the same true for 2.13.x (currently 2.13.9)?
yum remove scala -y
scala -version # => file not found
yum install scala-2.12.15.rpm -y
scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.13.9/scala-2.13.9.rpm
yum install scala-2.13.9.rpm -y
scala -version # => file not found
So, yes. Also missing in 2.13.9.
One moment: Looks like the problem only occurs on update!
yum remove scala -y
yum install scala-2.13.9.rpm -y
scala -version # => Scala code runner version 2.13.9
Looks like the problem only occurs on update.
Also true for 2.12.x:
yum remove scala -y
yum install scala-2.12.17.rpm -y
scala -version # => Scala code runner version 2.12.17
So maybe this is my fault? Is removal mandatory before updating?
So maybe this is my fault? Is removal mandatory before updating?
However, this is not needed with the deb package on Ubuntu:
scala -version # => Scala code runner version 2.12.15
wget https://downloads.lightbend.com/scala/2.12.17/scala-2.12.17.deb
sudo dpkg -i scala-2.12.17.deb
scala -version # => Scala code runner version 2.12.17
I'm not able to account for the behavior you're observing.