HTCFlasher is an open source ROM update utility (RUU) for HTC devices.
HTCFlasher -formerly known as HERMflasher- is an open source tool which allows you to flash ROMs on most current HTC devices. It has some extra features that the original HTC RUU doesn't have, like for example it can present a serial prompt to the bootloader (replacing mtty), or it can dump NBH file contents (.nb ROM parts).
Usage: HTCFlasher [options]
-X [filename] extract NBH file contents
-F [filename] flash NBH file
-D [device] use another serial device (default: /dev/ttyUSB0)
-i get device info
-p enter serial prompt (minicom/mtty like)
-v verbose mode
-h shows this help message