How to update my software on my iPhone 4?

I got my iPhone 4 last year around October. I'd like to update my software to where I can have imessage and other features. I don't know how to update the phone nor do I know if all my phone data (pictures, apps, messages. Etc) will be erased.
How can I update my iPhone 4?
Do I need to use the computer?
And will it delete my data?

Got to setting then scroll down to general and near the top should be software update

If you have 5.1.1, that is the most up to date you can get.

Settings =>
General =>
Software Update

It will check automatically if your software can be updated. If not, it will say "your software is up to date." If so, it will ask you if you want to update it, no computer needed.

No, your data will not be erased.

You can also use iTunes to upgrade. No worries on data, all is saved.

  • Why won't my iphone 4 check for software update? It was working saturday i did not try it sunday. But finally i cleared enough space to download the IOS 6 update. I tap the software update and it says "unable to check for update" I restarted my iphone and the Wi-Fi to. What do I do
  • Why can't I Update My iPhone 3G Software? I have a iPhone 3G. I did not have a sim card in it. I did not use the phone part of it. I just use the iPod part on it. On iTunes when I hit check for updates this message. "iTunes could not check for an update to carrier settings for your iPhone. An unknown error occurred (1631) ". What did I need to do to update my software?
  • Unable to update iphone 3gs software? I just got an iphone 3gs and i'm trying to JB it so i can use it on tmobile but the software is on 3.1.2, when i try to update it to anything new it says "iPhone2.1_4.3_8F190_Restore.ipsw" was not copied to the iPhone (insert name) because it can't be played on this iphone." says this with later updates as well. Any help?
  • Trying to update iPhone software, to 5.1.1? I have the latest iTunes, and when I plug in my iPhone, and choose "check for updates" it comes up with a window for me to choose a file. Saying it has to be a.ipsw file. I have windows xp and hve an have iPhone software 4.3.