If you have installed freePBX version, fist you need to update it
# yum update
Once this is done, we’ll run a yum shell command
#yum shell
> remove asterisk16 asterisk16-core
> install asterisk18-core asterisk18
> ts solve
> ts run
Thats it !!
😆 Thanks dude this helps