I need to install Nginx on my server. I see that it is possible to install it with :
sudo apt install nginx
or with :
sudo apt-add-repository ppa:hda-me/nginx-stable
sudo apt update
sudo apt install nginx
What is the difference for installing Nginx with the official repository and Ubuntu repository?
Which method is recommended
There will be no significant difference, however:
Installing packages from Ubuntu repository in some cases is safer and solid, because you stick with something that was well tested for your distribution, before being distributed. It will be also properly handled during dist-upgrades.
On the other hand, if nginx itself has its own repository, suited for your distribution, it's worth going with it, as you'll get the most up-to-date version of the software.
Which method is recommended
It's always recommended to use official Ubuntu repositories when it's possible. Any custom repository may cause problems or incompatibilities at some point. However in this case I think it's fairly safe to stick with PPA. I believie folks behind nginx know what they're doing :)
No comments:
Post a Comment