Replica set members on different versions

Hi,

I have a MongoDB replica set where two of the nodes are running on Raspberry Pi systems. I’ve recently upgraded these Pis systems to Pi 5 devices which have supported architecture for recent versions of MongoDB.

But it seems the only version in MongoDB repositories with Arm architecture available is 8.0. So how can I upgrade from 4.2 to 8.0? Can I set compatibility mode to 4.2 until all nodes are on 8.0?

Many thanks.