Libya on Sunday named a new prime minister, Baghdadi Mahmudi, as part of a major cabinet reshuffle, Libyan state television reported.