Question: how to transfer itunes library from macbook to imac?
Answer: Click on the Music item in the Finder's sidebar. You'll see an iTunes folder inside. Move this to the same location on the other computer via a network, an external drive, or FireWire Target Disk mode as desired.