Exercises

Exercises

Install the packages in the following articles:

Note

The Visual Studio Code (VSC) installation is optional.

Questions & Answers

What is a package?

CLICK FOR ANSWER

A package is software and related metadata.

What is a package repository?

CLICK FOR ANSWER

A package repository is the web address where the package files can be downloaded.

What is a package manager?

CLICK FOR ANSWER

A package manager is a tool that is used to manage packages. There are commonly CLI and GUI programs for interfacing with a Linux distributions underlying package management system.

What is the package manager for Ubuntu that we learned in this course?

CLICK FOR ANSWER

We learned about the Advanced Packaging Tool known as apt.

How can you learn more about the apt CLI?

CLICK FOR ANSWER

Three ways:

  • man apt
  • apt --help
  • Searching the internet for assistance (reading the apt online documentation)

How can you list all package repositories?

CLICK FOR ANSWER

apt list

What is the source of the package repositories?

CLICK FOR ANSWER

/etc/apt

How do you update the package repositories?

CLICK FOR ANSWER

sudo apt update

How can you view all installed packages?

CLICK FOR ANSWER

apt list --installed

How can you view the metadata for any specific package?

CLICK FOR ANSWER

apt show [package-name]

Using apt how do you find packages?

CLICK FOR ANSWER

apt search [package-name]

Using the internet how do you find packages?

CLICK FOR ANSWER

Use a search engine! A common phrase for finding valid articles: [package-name] Ubuntu Installation.

How do you install packages with apt?

CLICK FOR ANSWER

sudo apt install [package-name]

How do you remove packages with apt?

CLICK FOR ANSWER

sudo apt remove [package-name]

How do you upgrade all installed packages?

CLICK FOR ANSWER

sudo apt upgrade -y

What would including the -y option when using apt accomplish?

CLICK FOR ANSWER

It would auto confirm the apt action being performed including: updating, installing, removing, upgrading.