'The Last of Us' is incredibly long and among the best linear non open-world games ever made. That said, it's entirely linear and the thought of sinking such a massive amount of time into a game that's effectively a very long movie give it a very low replayability factor.
Likewise, Skyrim is a massive open world game that's incredibly linear and repetitive, giving it a low replayability factor.
Rockstar has several very long open world games that have massive replay value and don't get stale with repeat playthroughs. On the flip side, if you haven't played through 2 or 3 times you've generally missed a decent amount of content. GTA San Andreas, RDR2 and GTA V all fall into this rare category of long games that are highly replayable.
With open world games the key to high replayability seems to be NPC AI quality and providing different outcomes for different actions and the order in which you do things in-game. Allowing you to do lots of missions in whatever order you choose goes a long way to breaking up any feeling that you're watching a movie.