Thank you for those who have time to answer me. I have an Ubuntu 16 web server with Nginx (and several modules), PHPfpm, MySQL and other installed software. Hosting: DigitalOcean Droplet.
I'd like to upgrade everything - OS and all installed software (I'd like to have PHP 7.2, lates Nginx version and so on).
I have read that it is not recommended to update everything by hand with sudo apt-get dist-upgrade - but it is better to deploy a new machine with updated OS and reinstall everything. I'd like to know if there's a method / software / system that allows you to re-install all the same software and modules but in an updated version? Or do I have to sign up all the installed siftware and do it all by hand?
I tested with sudo apt-get dist-upgrade - but it's very hard to get a working environment.