osm2pgsql is a command-line based program that converts OpenStreetMap data to postGIS-enabled PostgreSQL databases.
Extracted automatically from Osm2pgsql homepage
brew install osm2pgsql
The following 4 dependencies will be installed if you install Osm2pgsql: