Just the way the IDF does it.
- The bochreem are not allowed to leave the premise. Visits to or meetings with family are forbidden.
- Anyone who does go home (or shopping) needs to be in isolation for two weeks before being let in into the yeshivah. Bochreem in isolation can learn together.
- Those who turn out infected must go to a hotel with other infected people. Infected bochreem can learn together.
Their teachers must follow the same regime.
Part of the yeshiva can go home for a long weekend every 4-6 weeks and then needs to follow above procedure while the majority stays isolated.
In the time of a vicious pandemic, that’s what needs to be done.
This will be very hard for them and their families. But that is what conscripts and professional soldiers in Israel do at the moment.
If Torah learning is as vital as our army (and I believe it is), then this is the way to go about it. Anything more lenient is unsafe, against the Torah, and an embarrassment of the Torah community and G^d’s Name in the world.
Rabbis (even the top ones) who didn’t warn their flock or even encouraged them to discard lif-saving medical advice should be prosecuted for negligent homicide. Especially those who did not apologize and continue in their folly ways. They claim to be wise. They should face the consequences.
The same for their irreligious colleagues, university professors, who have called for ignoring medical advice because it would cost too much money.