I need a program which can only be compiled with ifort, and it seems Intel is no longer supporting ifort. So, I am trying to install the intel-oneapi-ifort package through apt on Linux Mint.
If I search for it, I get:
apt search ifort
v intel-oneapi-ifort -
v intel-oneapi-ifort-32bit:i386 -
v intel-oneapi-ifort-runtime -
v intel-oneapi-ifort-runtime-32bit:i386 -
So it is definitely listed on the apt database. However, when I enter the installation command:
sudo apt install intel-oneapi-ifort
I get given the message:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'intel-oneapi-compiler-fortran' instead of 'intel-oneapi-ifort'
intel-oneapi-compiler-fortran is already the newest version (2025.2.0-766).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
I have tried uninstalling intel-oneapi-compiler-fortran and then entering the same command, but apt just reinstalls intel-oneapi-compiler-fortran instead of installing intel-oneapi-ifort.
I don't know why apt has decided I would prefer intel-oneapi-compiler-fortran rather than the package I asked for, and I cannot figure out a way to override this decision. The apt manual doesn't list anything that might help me, and online I can only find people explaining what this message means, rather than how to override it (for example: https://superuser.com/a/1700872/1788401).
Does anyone know how I could get apt to install intel-oneapi-ifort? How can you override apt's selection?