Cover the yucca with cold salted water, bring to a boil, and cook the yucca until very tender, about 30 minutes.
Soak the onions in the vinegar for 30 minutes.
Crush the garlic and place in the oil. Heat the oil until almost smoking. Place the onions on top of the yucca. Pour the very hot oil over the yucca.