Back in the olden days, refineries used steam-powered reciprocating pumps to move liquids. there are still quite a few around, I made lots of money rebuilding and maintaining them back in the 80's, GOML.
Same principle and design as steam locomotives, just different scale.
getting them timed just right was tricky and most of them had rope-style packing. Flintstone stuff.