I have backups for my current MySQL database and related data but I ask generally, is it safe to do the following?

```
apt-get update nginx mysql-server php-fpm php-mysql
apt-get upgrade nginx mysql-server php-fpm php-mysql

```

I do use `unattended-upgrades` defaultly, only for security upgrades, but I do feel I should upgrade LEMP entirely due to performance needs.

BTW, I know [CMs](https://en.wikipedia.org/wiki/Software_configuration_management) like Ansible do just that (if indeed, it's a basically-all-default LEMP).