Saturday, April 1, 2017

apt - What is the difference for installing Nginx with the official repository and Ubuntu repository?




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

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...