The package managers of centos, debian, and ubuntu have complex structures, spanning several directories at different places on the file system. I suggest that you uninstall your dokuwiki, using yum, and then create a directory with a name of your choice where you want to install your dokuwiki. I am attaching a copy of the downloader. Copy it into that directory and call it from your browser. Follow the instructions. See: https://www.dokuwiki.org/install:downloader
This will give you the most recent version of dokuwikli, whereas the package managers are always behind by several distributions.