Create PBF by Country

Does anyone know what tool is used to create PBF files? Once I get the 30GB Planet PBF, what can I use to filter it ?

I’m looking to get extracts that are similar to what Gisgraphy offers, creating a PBF for each country. They are not keeping their files up to date very often, so it would be nice if I could figure out how to do it myself.

Did you look at ? They have smaller extracts (per country/region)
Frederik Ramm gave a presentation on the tools they use on one of the previous SOTM conferences.

Hello otterslide,


also search the OSM wiki for osmfilter and osmconvert … Success?