In 1840-41 he led a successful expedition to quell a revolt in Syria, and in 1842 was Governor of the Tripoli Eyalet (Lebanon). He won distinction in suppressing the Albanian Revolt of 1843–44, led by local Muslim aristocrats. There followed the expedition to Kurdistan following the Massacres of Badr Khan (1846). After the Hungarian Revolution of 1848, Omar Pasha was put in command of the Ottoman forces in Moldavia and Wallachia. His firm and effective handling of a powder keg situation involving potential confrontation with the Russian and Austrian armies demonstrated that he possessed considerable diplomatic skills. There followed his command in Bosnia (1850) where he executed Ali-paša Rizvanbegović of Stolac, who had defended Ottoman power during an earlier revolt but then started to build up an independent power base. Omar Pasha executed, plundered and abolished the respected historical aristocracy of Muslim faith, in the interest of buttressing Ottoman central power. This was followed by a command in the Principality of Montenegro (1852). His chief services were rendered when the Crimean War broke out. In 1853 he successfully defended Calafat. In 1854 he entered Bucharest, and the next year defeated 40,000 Russians at Yevpatoria in the Crimea. A later achievement was his capture of Cetinje, Montenegro, during the Montenegrin–Ottoman War (1861–62), considered a difficult feat.