Swap multiple different components at the same time

I created two libraries, components in each library are under the same name but different visual styles. I was wondering if I could replace multiple components to the new library at the same time? Or I can only replace one by one? Thanks!