MOSCOW (AP) — Russia's foreign minister says that Russian troops will stay in Georgia's breakaway provinces of Abkhazia and South Ossetia for a long time to come.

Sergey Lavrov says at a briefing Tuesday that the Russian military presence will be necessary to avert Georgian attempts to regain control.

He says the troops will remain for a "foreseeable perspective." He didn't say how many troops will be based in the two regions.

Lavrov says Russia will sign formal agreements with both regions regarding the troop presence.

Georgia and Russia fought last month after Georgian forces attacked South Ossetia. Russian forces invaded and routed Georgia's military.