Hi. If you want to extract, edit and repack boot.img you can use (on Ubuntu) "abooting": you can find il on Ubuntu repository.
Here how Abooting works
If you want to know how to move your repacked boot.img on your device
have a look here
Let me know if you have more questions. Have a nice day! :-)