Installing and Managing Packages on Debian/Ubuntu Systems

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

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.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install the Apache Web Server Package

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 

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
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.

You can verify the service is running with:

sudo systemctl status apache2

And capture the output via the command:

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

Additional Resources

As an alternative to the CentOS 7 systems they are developing their API on, your development team will be doing some basic web server testing on a new Ubuntu 16.04 LTS system. They will be configuring it for the most part, but they have asked you to provision it to serve out basic web pages. They have provided you with the credentials and connection information.

You have been asked to install the Apache web server (package name 'apache2') on the system using the default package management system.

Before you turn the system over, make sure the wget package is installed. Once it is, use it to download the default web page from the Apache server you just installed, and redirect that output to a file called _localindex.response in your user's home directory. Once that is successfully captured, you can turn the system back over to your developers.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?