Wholesale prices climbed 4.6 percent in June from a year earlier, largely due to higher energy costs, the Bank of Japan said Thursday.