How to upgrade ubuntus package?


I was install Nginx and MariaDB using default ubuntu repository few month ago. and i want to upgrade nginx or mariadb more lastest version using another PPA.

Is it ok just add lastest PPA (like deb trusty mainand) and then apt-get install update && upgrade?

or need to uninstall Nginx and Mairadb after, just install new version?

Thank you.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


If you’re wanting to upgrade by using another repository, to prevent potential conflicts, you’d want to uninstall, add the repository, update, and then reinstall.