Gollum/Wiki update to version 5 – How to update

Gollum has publish the new version 5.

There are quite a few changes.
We have already updated our wiki to the new version. We have also changed the tutorial here and the Wiki description/tutorial.


Gollum 5.1 - Update process



sudo pacman -S cmake


Update gem packages

gem update


Backup Gollum/Wiki folder

cp -r ~/your/wiki/path/ ~/your/wiki/path.backup


Preparation for the update

cd ~/your/wiki/path/
mv home.md Home.md
rm -r public
cp -r ~/.gem/ruby/2.7.0/gems/gollum-5.*/lib/gollum/public/gollum public
cp -r ~/.gem/ruby/2.7.0/gems/gollum-5.*/lib/gollum/templates public/

Restore images etc.

cp -r ~/your/wiki/path.backup/public/images ~/your/wiki/path/public/


Migration script

cd ~/.gem/ruby/2.7.0/gems/gollum-5.*/bin/
./gollum-migrate-tags ~/your/wiki/path/ --prefer-relative-links --hyphenate --write


git commit changes

git add .
git commit -m "update Gollum/Wiki to version 5"


Restart gollum.service

sudo systemctl restart gollum.service


Clean gem

If everything works, you can clean your old files/versions of Gollum and other software.
gem clean

Leave a Reply

Your email address will not be published. Required fields are marked *