The government said late Saturday the workers would be flown back to Turkey from the capital Tripoli.
The hostages were working for the Turkish company ENKA Teknik building a power plant in the desert town of Ubari, about 950 kilometers (590 miles) south of Tripoli. An unknown armed group abducted them along with a German national in November.
After their abduction, the power plant shut down and the firm evacuated dozens of its staff from Libya.
Libya was plunged into chaos following the 2011 uprising that toppled and later killed longtime ruler Moammar Gadhafi, and is now split between rival governments, each backed by an array of militias.
Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.