Wal-Mart Stores Inc. (WMT) on Friday said it agreed to sell its grocery distribution unit to Warren Buffett (search) 's Berkshire Hathaway Inc. (search) for about $1.5 billion, passing off a slower-growing business that could thrive under new owners.

The world's biggest retailer said the deal to sell McLane Co. Inc. would allow it to focus "completely" on its retail business. Wal-Mart expects the deal will trim its earnings for the next two years.

Wal-Mart also said McLane sold its Merit Distribution Services Inc. trucking business to Swift Transportation Co. Inc. for about senting just 6 percent of Wal-Mart's total sales, and its growth can't match Wal-Mart's massive retail expansion. It was also running into some conflicts as it tried to attract new customers because many compete with Wal-Mart.

"From the McLane perspective, this will create some opportunities for them that they cannot have being affiliated with Wal-Mart," Jay Allen, Wal-Mart's senior vice president of corporate affairs, said in a telephone interview.

Wal-Mart and Sam's Club (search) warehouse stores made $7.2 billion in purchases from McLane's last year. That amounts to just 4 percent of Wal-Mart's U.S. business, mostly candy and tobacco, said Shari Eberts, retail analyst with J.P. Morgan. And McLane is a low-margin business, so Wal-Mart's operating margin should improve without it, she said.

Mark Miller, retail analyst with William Blair, said the deals would modestly lift Wal-Mart's growth rate because the retail side has been expanding much faster than McLane, and Buffett would likely have more success winning over customers that compete with Wal-Mart.

"It could be more valuable to him (Buffett) -- there's not a customer conflict," Miller said.

In the 13 years since Wal-Mart bought McLane, the retailer's store base has more than doubled and its sales are up 10-fold. Wal-Mart had only three Supercenters with grocery stores in 1990, and now has about 1,300. The number of Sam's Clubs has more than quadrupled to 525 since 1990.

McLane accounted for $14.9 billion of Wal-Mart's $244.5 billion in sales for the fiscal year ended in January 2003. Wal-Mart recorded $25.8 billion in revenues for 1990.

In afternoon trading on the New York Stock Exchange, shares of Wal-Mart were up 21 cents, or 0.38 percent, at $56.15, reversing an early loss. Berkshire Hathaway's Class A shares rose $400, or 0.6 percent, at $70,200.

The deal quieted talk that Wal-Mart might be interested in buying Ahold NV's U.S. Foodservice, which has been battered by accounting problems.

"The likelihood of (Wal-Mart) being interested in U.S. Foodservice now has gone to zero," said Andrew Wolf, an analyst who follows food distributors for BB&T Capital Markets.

That would be good news for other big players such as Sysco Corp., who were uncomfortable with powerhouse Wal-Mart playing a big role in the industry, he said.

"You just don't want Wal-Mart in your business. Period. That's the major take-away," Wolf said.

The grocery distribution sector has been tainted by accounting problems at U.S. Foodservice and industry leader Fleming Cos. Inc., which filed for bankruptcy in April after losing its biggest customer, Kmart Corp. .

McLane's management team will remain in place, and its headquarters will stay in Temple, Texas.

Bentonville, Arkansas-based Wal-Mart said the McLane deal would reduce earnings by about 1 cent per share in the current year, and 2 cents per share next year, excluding a one-time gain.

Berkshire Hathaway's holdings range from Dairy Queen ice cream restaurants to Geico insurance. The company sees "an excellent possibility" for expanding McLane's customer base.

Berkshire Hathaway has been on a buying binge in the last two years, investing more than $10 billion in companies ranging from energy to telecoms to carpet. In April it agreed to buy Clayton Homes Inc. for about $1.7 billion.