Wilfredo Lee, Associated Press
In this Wednesday, June 4, 2014 photo, Baltazar Rosado, of Hollywood, Fla., pumps gasoline into his car at a Chevron gasoline station in Pembroke Pines, Fla. The Labor Department reports on U.S. consumer prices in June on Tuesday, July 22, 2014.

WASHINGTON — U.S. consumer prices rose in June at a slightly slower pace than in May with two-thirds of the June advance driven by the largest jump in gasoline prices in a year.

The Labor Department says prices rose 0.3 percent in June following a 0.4 percent rise in May which had been the biggest one-month gain in more than a year.

Energy prices were up 1.6 percent, nearly double the May gain, reflecting a sharp 3.3 percent rise in gasoline costs. But food costs edged up just 0.1 percent, the smallest gain since January.

Core prices, which exclude volatile food and energy, were up just 0.1 percent. Over the past 12 months, core prices are up 1.9 percent, an indication of moderate inflation.