Created Update Existing Installation (markdown)

Hadi Nategh
2018-02-14 11:06:57 +01:00
parent 1309006496
commit 1f3ac78319

@ -0,0 +1,65 @@
> [Wiki](Home) ▸ [Installation](installation) ▸ **Update Existing Installation**
Update An Existing Installation
=======
Despite which distribution you have your EGroupware instance installed on, it's always good idea to run update frequently in order to get the latest update patches and security fixes.
Please select the distribution from the below list and follow its update instruction.
<table>
<tr>
<td><a href="https://github.com/EGroupware/egroupware/wiki/update-existing-installation#centos-redhat"><img src="https://software.opensuse.org/assets/download/centos-de865c285c8e1567761ee0feadbf4778.png"/>Centos/RedHat<img src="https://software.opensuse.org/assets/download/rhel-4f3565f8f0c66c2a555caf5c5fc3b287.png"/></a></td>
<td><a href="https://github.com/EGroupware/egroupware/wiki/update-existing-installation#opensuse-sles"><img src="https://software.opensuse.org/assets/download/opensuse-ea5fec454e9f4ca53ea7276f48905243.png"/>openSUSE/SLEs<img src="https://software.opensuse.org/assets/download/sle-a04c87206b6b247faebf37f846f8781d.png"/></a></td>
<td><a href="https://github.com/EGroupware/egroupware/wiki/update-existing-installation#ubuntu-debian"><img src="https://software.opensuse.org/assets/download/debian-7c7747407454caca1c5ab01fed35581d.png"/>Ubuntu/Debian<img src="https://software.opensuse.org/assets/download/ubuntu-1275234a5d802bea3ebcf789a50c9589.png"/></a></td>
</tr>
</table>
***
## Ubuntu/Debian
### Manual Update
1- ```apt update```<br>
You may run command ```apt list --upgradable``` in order to see list of packages which will be upgraded.<br>
2- ```apt upgrade```
### Automatic Update
1- ```apt install unattended-upgrades```<br>
after installing unattended-upgrades you need to add egroupware packages into list of allowed packages in 50unattended-upgrades file.<br>
2-```vi /etc/apt/apt.conf.d/50unattended-upgrades```<br>
Ubuntu|Debian
------|------
find the `Unattended-Upgrade::Allowed-Origins` and add the following line:<br>```"*stylite-epl*:";``` | find the `Unattended-Upgrade::Origins-Pattern` and add the following line:<br>```"o=obs://build.opensuse.org/stylite-epl/Debian_8.0,a=";```
3- check if the unattended-upgrades with configure packages:<br>```unattended-upgrades --dry-run --debug```<br>
`--dry-run`: only downloads the upgradable packages but will not install them unless you run the unattended-upgrades command with no parameter.<br>If you wish to check logs and see what has happened with packages, you may read the following logs:
```
/var/lib/unattended-upgrades/unattended-upgrades.log
/var/lib/unattended-upgrades/unattended-upgrades-shutdown.log
/var/lib/unattended-upgrades/unattended-upgrades-dpkg.log
```
4- unattended-upgrades will be scheduled for automatic updates and will run automatically, so, from now on you don't need to be worry about out-dated packages.
***
## Centos/redHat
### Manual update
``` yum update```
### Automatic update
1- ```yum install yum-updatesd```<br>
2- ``` vi /etc/yum/yum-updatesd.conf```<br>
change variable `do_update=no` to `do_update=yes`<br>
3- ``` service yum-updatesd restart```
**Alternative:** here is details info abour [yum-cron](http://man7.org/linux/man-pages/man8/yum-cron.8.html)
***
## openSUSE/SLEs
### Manual update
```zypper update```
### Automatic update
Enter `Yast;` there is a menu item called online update configuration where you can configure your system update behavior.