By the end of next year, most Walgreens customers will be able to pick up prescriptions and packages in a single stop.

To accommodate a growing number of e-commerce packages — Walgreens will let customers pick up and drop off packages shipped through FedEx at thousands of pharmacies, the companies said Wednesday.

The service initially will be available in a few dozen stores this spring, said Walgreens spokesman Michael Polzin. Walgreens expects to begin expanding the program this summer, bringing it to “thousands” of stores by the end of the year and nearly 8,000 by fall 2018, he said.

FedEx packages likely will be handled at a counter near Walgreens’ photo services, Polzin said. A secure cabinet will hold packages until they are picked up by FedEx or the customer.

Customers dropping off packages will need to pack and label them in advance since Walgreens won’t sell other FedEx services or let customers print shipping labels on-site, Polzin said.