How to upgrade ubuntus package?

Posted February 12, 2017 2.1k views
Linux BasicsNginxLEMP


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.

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.

Submit an Answer
1 answer


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.