Israel has developed a plan to do this as a necessary step to finally destroying Hamas. Israel had done that some decades ago, but it was an incomplete occupation, and so it ultimately was a failure. One of the reasons for the failure was that Israel intended only on controlling Gaza with no intent to destroy Hamas, hence it was an incomplete occupation.
The current plan has that as the goal and purpose of the planned occupation. I think the plan could work and not even be very long-term, if a couple of additional factors are included (and I have no idea whether they are or are not).
The IDF would need to completely isolate Gaza along its borders and seacoast to keep the terrorists from escaping out the sides and back. If they can do that, then occupying successively seized territory, whether contiguously seized or in separate chunks as the tactics and real-time situation require, then the Israel wouldn’t need to maintain the occupation of all of Gaza for any longer than it would take to satisfy themselves that all the arms and supply caches have been seized, the tunnels plugged, and Hamas functionally exterminated rather than leaked away.
The other factor is the formation of an Abraham Accord collection of Arab states plus Egypt that would emplace a governance function in Gaza. At that point, Israel could withdraw from the strip.