Installing and Managing Packages on Debian/Ubuntu Systems

Hands-On Lab

 

Photo of Terrence Cox

Terrence Cox

Senior Vice President of Content

Length

01:00:00

Difficulty

Beginner

Installation and removal of packages is a core skill for anyone managing Linux distributions. During this activity, the student will work with the package manager and installation utilities apt and dpkg to manage packages on Ubuntu/Debian Linux distributions.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Installing and Managing Packages on Debian/Ubuntu Systems

Introduction

Installation and removal of packages is a core skill for anyone managing Linux distributions. During this activity, the student will work with the package manager and installation utilities apt and dpkg to manage packages on Ubuntu/Debian Linux distributions.

Log in to the system using the credentials provided on the hands-on lab page.

Install the Apache Web Server Package

> Note: Ubuntu/Debian systems will usually start a service automatically, once its package is installed. You may need to update the package manager.

sudo apt update

You've been provisioned with an Ubuntu 16.04 LTS server and will need to install the Apache web server and wget on it using the standard package manager.

sudo apt install apache2 wget

Verify the Server is Running and Capture the Result

Using the wget package, capture the output of a request to the local Apache server's default site in a file in the home directory called local_index.response.

Verify the service is running with:

sudo systemctl status apache2

Capture the output via the command:

wget --output-document=local_index.response http://localhost

Conclusion

Congratulations, you have successfully completed this hands-on lab!