Cairo (CNN) Hosni Mubarak had been Egypt's strong-handed president, controlling the North African nation for nearly three decades. He'd been target of mass scorn and derision, with hundreds of thousands hitting the streets to blast his rule. He'd been in prison, sentenced to spend the rest of his life there for the killing of protesters.

But soon he will be a free man.

That was the decision Saturday by the Cairo Court of Appeals, which state media reported upheld a three-year sentence against the 87-year-old Mubarak on corruption charges, but -- accounting for time he's already served -- gave the OK for him to go home.

When and exactly where he'll get out of custody wasn't immediately clear.

Nor was it evident that Egyptians would care much, if and when that happens.

Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Thousands of Egyptians gather in Cairo's Tahrir Square during a rally marking the anniversary of the 2011 Arab Spring uprising on Saturday, January 25. A spate of deadly bombings put Egyptian police on edge as supporters and opponents of the military-installed government take part in rival rallies for the anniversary. Hide Caption 1 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Supporters of Abdel-Fattah el-Sisi, Egypt's minister of defense, gather at Tahrir Square to mark the anniversary. Hide Caption 2 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Egyptian traditional dancers perform at a pro-military rally in Tahrir Square. Hide Caption 3 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – A supporter of the Muslim Brotherhood flashes a four-fingered salute next to burning tires allegedly set ablaze by protesters during clashes with security forces. Hide Caption 4 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – A man waves an Egyptian flag during a rally. Hide Caption 5 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Pro-military demonstrators wave national flags and hold pictures of Defense Minister Abdel-Fattah el-Sisi, who was a key figure in the ouster last summer of democratically elected President Mohamed Morsy, and who recently hinted at a run for the presidency himself. Hide Caption 6 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Anti-military protesters shout slogans near the Ramses Square in downtown Cairo. Hide Caption 7 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – A man carries his son to escape clashes between police and anti-military protesters. Hide Caption 8 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – A boy is seen during a rally marking the anniversary. Hide Caption 9 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Supporters of the Muslim Brotherhood clash with security forces in Cairo. Hide Caption 10 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Egyptian anti-military protesters, mostly supporters of ousted Islamist President Mohammed Morsy, clash with security forces in downtown Cairo Hide Caption 11 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Egyptians walk around an armored personnel carrier parked at a pro-military rally in Tahrir Square. Hide Caption 12 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – A Muslim Brotherhood supporter aims fireworks at pro-military demonstrators clashes in Cairo. Hide Caption 13 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – A supporter of the Egyptian military leadership flashes the victory sign during clashes with Muslim Brotherhood supporters. Hide Caption 14 of 15 Photos: Photos: Egyptians mark anniversary of Arab Spring uprising Egyptians mark anniversary of Arab Spring uprising – Egyptian police fire tear gas to disperse hundreds of supporters of ousted President Mohammed Morsy. Hide Caption 15 of 15

Just a few years ago, throngs risked their lives to demand Mubarak's ouster. A short time later, they were glued to their televisions to watch his first trial.

But Cairo now is a lot different than in 2011. Some have a strong interest in what happens to Mubarak, be they his allies or his staunchest enemies, including those who lost loved ones amid demonstrations.

Other Egyptians, though, are tired of all the legal back-and-forth. They don't have the same kind of energy for mass discontent, or the same patience for those who do.

And they can't be surprised. The Muslim Brotherhood-dominated government, led by elected then deposed and convicted President Mohamed Morsy , is gone. Egypt's powerful military -- which helped prop up Mubarak for decades -- made sure of that. The army's former chief of staff, Abdel Fattah El-Sisi , is now the nation's president.

Latest in Mubarak's roller coaster saga

The Cairo Court of Appeals decision won't just pave the way for the release of Hosni Mubarak.

His sons Gamal and Alaa, who were power-players during their father's stay in power, also had their sentences reduced by the court and were ordered freed, state-run Al Ahram newspaper reported.

The family won't get off entirely: The court slapped a multimillion-dollar fine on Mubarak and his sons to pay back the Egyptian government for embezzlement.

Hosni Mubarak -- seen here while on trial in May 2014 -- was taken into custody shortly after his ouster as Egypt's president.

It could be worse for the Mubaraks, but of course, it once was much better. Hosni Mubarak, after all, dominated Egypt from his ascension to president in 1981, shortly after the assassination of Anwar Sadat, right up until early 2011.

Everything came crashing down then, as massive, vibrant forces broke out in Cairo's Tahrir Square and elsewhere in Egypt.

Security forces cracked down, but the demonstrators didn't relent. Instead, they swelled in numbers in what was then the highlight of the Arab Spring, the movement of popular revolutions then sweeping North Africa and the Middle East.

Eventually, Mubarak bowed to the pressure by stepping down as president. And, in the process, he became even more of a marked man.

The Egyptian general prosecutor's office announced later that year that he and his sons, Gamal and Alaa, would stand trial on charges related to corruption and the killing of protesters -- setting off a legal roller coaster for the Mubaraks.

In June 2012, the longtime Egyptian leader was found guilty and sentenced to life in prison.

But he got a new trial the following year, one that culminated in May 2014 with the three-year prison sentence tied to a conviction for embezzlement. His two sons got four years each on the same charge.

His freedom doesn't mean Mubarak's legal woes are over, including appeals and possibly new charges. The last few years have proved, if nothing else, that there can be a lot of twists in the Egyptian legal system that could affect its longtime leader.