Sometimes we may need to update already installed specific software packages (Firefox, Nginx, etc) in Ubuntu. In this article, we will discuss a way to update a software package using the terminal.
If we run sudo apt upgrade command it will update all the packages. We can update a specific software package by following the steps.
Step 1: Open the terminal and type the following command to update the package source list.
sudo apt update
Step 2: Run the following command to update a specific package. Here we are updating firefox to the latest version.
sudo apt-get upgrade firefox