How to install a package?

QuestionsQuestions8 SkillsProYour First Linux LabOct, 28 2025
089

To install a package using the apt package manager on a Debian-based Linux system (like Ubuntu), follow these steps:

  1. Open a terminal.

  2. Update the package lists to ensure you have the latest information about available packages:

    sudo apt update
  3. Install the desired package using the following command:

    sudo apt install package-name

    Replace package-name with the name of the package you want to install.

  4. Verify the installation (optional) by checking the version of the installed package:

    package-name --version

    Replace package-name with the actual command for the installed package, if applicable.

0 Comments

no data
Be the first to share your comment!