An Egyptian court has ordered the release of deposed leader Hosni Mubarak, state-run media outlet Al-Ahram reported Wednesday.

The former president will remain in custody for 48 hours, pending the prosecution's appeal, the report said.

Mubarak ruled Egypt, the most populous Arab country, for three decades until demonstrators opposing his rule forced his ouster in 2011.