Reprogram Arduino's own microcontroller

So how exactly would I compile the bootloader source and upload it to my Uno? Avr-gcc and avrdude?