To get iOS 2, it seems very likely that you meant to ask about a current or recent version of iOS, since iOS 2 is an extremely old version that is not supported anymore. If you are looking for a newer iOS version like iOS 26 (the latest being discussed in the results), here is how to get the latest iOS or the beta versions:
- To get the latest official iOS version, go to Settings > General > Software Update on your iPhone and download the update if available.
- To get the latest developer beta (like iOS 26 developer beta), you need to enroll in Apple's developer beta program by signing in at developer.apple.com with your Apple ID, download the beta profile, install it, restart your phone, and then check Software Update > Beta Updates to install the beta.
- To get the public beta, visit beta.apple.com, sign in with your Apple ID, enroll your device, and then go to Settings > Software Update > Beta Updates to download the public beta version.
Backing up your device before installing any beta is highly recommended. Also, note that older iOS versions like iOS 2 are not available for modern devices, and devices typically can only update to the latest iOS supported by the model. If this is not what you meant, please clarify if you want information about iOS 2 specifically or another version. Sources: