2021-07-09 05:10:05 +08:00
|
|
|
# Updating an Install
|
|
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
By default, LibreNMS is set to automatically update. If you have
|
|
|
|
|
disabled this feature then you can perform a manual update.
|
2017-10-02 21:36:22 +01:00
|
|
|
|
2021-07-09 05:10:05 +08:00
|
|
|
## Manual update
|
2017-10-02 21:36:22 +01:00
|
|
|
|
2019-07-18 21:25:53 -05:00
|
|
|
If you would like to perform a manual update then you can do this by
|
|
|
|
|
running the following command as the `librenms` user:
|
2014-03-29 20:06:26 +00:00
|
|
|
|
2016-08-26 00:40:11 +01:00
|
|
|
`./daily.sh`
|
2014-03-29 20:06:26 +00:00
|
|
|
|
2015-03-09 08:09:53 +10:00
|
|
|
This will update both the core LibreNMS files but also update the database
|
|
|
|
|
structure if updates are available.
|
2016-08-11 09:07:13 -05:00
|
|
|
|
2021-07-09 05:10:05 +08:00
|
|
|
## Advanced users
|
2019-07-18 21:25:53 -05:00
|
|
|
|
|
|
|
|
If you absolutely must update manually without using `./daily.sh` then
|
|
|
|
|
you can do so by running the following commands:
|
|
|
|
|
|
2017-05-03 14:48:23 +01:00
|
|
|
```bash
|
|
|
|
|
cd /opt/librenms
|
|
|
|
|
git pull
|
2020-11-09 07:28:07 +01:00
|
|
|
./scripts/composer_wrapper.php install --no-dev
|
2020-11-08 05:00:47 +01:00
|
|
|
php includes/sql-schema/update.php
|
2018-02-08 15:46:55 -06:00
|
|
|
./validate.php
|
2017-05-03 14:48:23 +01:00
|
|
|
```
|
|
|
|
|
|
2021-07-09 05:10:05 +08:00
|
|
|
## Disabling automatic updates
|
2016-08-11 09:07:13 -05:00
|
|
|
|
2022-02-16 02:43:48 +01:00
|
|
|
LibreNMS by default performs updates on a daily basis.
|
|
|
|
|
This can be disabled in the WebUI Global Settings under System -> Updates, or using lnms
|
|
|
|
|
|
|
|
|
|
!!! warning
|
|
|
|
|
You should never remove daily.sh from the cronjob!
|
|
|
|
|
This does database cleanup and other processes in addition to updating.
|
|
|
|
|
|
|
|
|
|
!!! setting "settings/system/updates"
|
|
|
|
|
```bash
|
|
|
|
|
lnms config:set update false
|
|
|
|
|
```
|