Easy. Go into the science advisor, click on gunpowder and here you go !
But obviously, you forget all about taking pottery or writing to have better science or any other complication...
As for the barbarians, you don't need gunpowder to deal with them. Archers, Axemen, Chariots... All these are good answers to early barbarians.
And welcome to CFC !