Egyptian judicial authorities have ordered that General Hosni Mubarak, who ruled Egypt for 30 years before being toppled by popular revolution in January 2011, according to security officials and reported by The New York Times.
Mubarak, 85, was just acquitted in one of the remaining corruption cases against him, and another corruption case is expected to be cleared up in the coming days.
"All we have left is a simple administrative procedure that should take no more than 48 hours. He should be freed by the end of the week." Mubarak's lawyer, Fareed El-Deeb, told Reuters.
The Times notes that authorities may find other ways to keep him in detention.
Mubarak still faces a retrial on charges relating to the murder of protesters during the 2011 revolution.
The military ruler and his interior minister were convicted and sentenced to life in prison last June for failing to stop killing during the 2011 uprising that ousted him.
The retrial began in May after the court accepted appeals from both the prosecution and the defense.
On Saturday Mubarak missed a session of the retrial for the first time.