To install a package using the apt package manager on a Debian-based Linux system (like Ubuntu), follow these steps:
-
Open a terminal.
-
Update the package lists to ensure you have the latest information about available packages:
sudo apt update -
Install the desired package using the following command:
sudo apt install package-nameReplace
package-namewith the name of the package you want to install. -
Verify the installation (optional) by checking the version of the installed package:
package-name --versionReplace
package-namewith the actual command for the installed package, if applicable.
