How to upgrade ubuntus package?

February 12, 2017 1.7k views
Linux Basics LEMP Nginx


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.

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.

Have another answer? Share your knowledge.