# Updating

<p class="callout info">It's assumed that Bookstack was installed by the Ubuntu script.</p>

1. Very important, as always backup your Bookstack instance
2. by default Bookstack is installed under `/var/www/bookstack`, if that wasn't changed, then go there
3. try to pull the latest changes: `git pull origin release`
4. if that fails because there are updated files in the directory, run: `git config core.fileMode false`
5. then: `composer install --no-dev`
6. last one: `php artisan migrate`

Also don't forget to clear cache:

```shell
php artisan cache:clear
php artisan config:clear
php artisan view:clear
```

Sources:

- [https://www.bookstackapp.com/docs/admin/updates/](https://www.bookstackapp.com/docs/admin/updates/)
- [https://old.reddit.com/r/BookStack/comments/vtht1f/need\_help\_updating\_bookstack\_22042\_to\_22062/](https://old.reddit.com/r/BookStack/comments/vtht1f/need_help_updating_bookstack_22042_to_22062/)