update yum metadata and fix extention of downloaded package