2016-08-24 08:12:20 +01:00
|
|
|
source: General/Updating.md
|
2014-03-29 20:06:26 +00:00
|
|
|
|
2017-10-02 21:36:22 +01:00
|
|
|
By default, LibreNMS is set to automatically update. If you have disabled this feature then you can
|
|
|
|
perform a manual update.
|
|
|
|
|
|
|
|
#### Manual update
|
|
|
|
|
|
|
|
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
|
|
|
|
2017-05-03 14:48:23 +01:00
|
|
|
#### Advanced users
|
2017-10-02 21:36:22 +01: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
|
2018-02-08 15:46:55 -06:00
|
|
|
composer install --no-dev
|
|
|
|
./build-base.php
|
|
|
|
./validate.php
|
2017-05-03 14:48:23 +01:00
|
|
|
```
|
|
|
|
|
2018-02-08 15:46:55 -06:00
|
|
|
Not using daily.sh means that you will also lose a lot of automatic database clean up, you will need to do this manually.
|
|
|
|
|
2016-08-11 09:07:13 -05:00
|
|
|
## Disabling automatic updates ##
|
2017-05-03 14:48:23 +01:00
|
|
|
LibreNMS by default performs updates on a daily basis. This can be disabled by setting:
|
2016-08-11 09:07:13 -05:00
|
|
|
|
2016-08-26 00:40:11 +01:00
|
|
|
`$config['update'] = 0;`
|