Somalia's parliament has approved Mohammed Ali Gedi as the country's new prime minister, nearly two weeks after rejecting his nomination.

More than 80 percent of lawmakers voted to approve Mr. Gedi Thursday.  He was later sworn in during a ceremony in Nairobi, Kenya, where the new government has been meeting due to security concerns at home.

Earlier this month, lawmakers passed a vote of no confidence in Mr. Gedi, saying Somali President Abdullahi Yusuf Ahmed failed to seek parliament's approval for the nomination.

The president re-appointed Mr. Gedi two days later, satisfying lawmakers demands that the process comply with rules governing the newly created power-sharing government.

Parliament had also rejected the prime minister's formation of a cabinet of nearly 80 ministers. Mr. Gedi is expected to appoint a new cabinet in the coming weeks.

Some information for this report provided by AP, AFP.