0% found this document useful (0 votes)
17 views3 pages

Lab Managing Packages With Apt 2

Uploaded by

Brian K. Acevedo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Lab Managing Packages With Apt 2

Uploaded by

Brian K. Acevedo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Lab: Managing Packages with apt - apt install, apt remove, and apt

autoremove
Objective
Students will learn how to use apt (Advanced Package Tool) to install, remove, and
clean up packages on a Debian-based Linux system. The focus will be on managing
installed software through these essential package management commands.
Equipment/Tools Needed
 Computer with Linux installed (Debian, Ubuntu, or a derivative)
 Terminal application

Content
1. Introduction to apt Commands
o apt install: Installs a specified package or package group from the
repository.
o apt remove: Removes an installed package but leaves its
configuration files on the system.
o apt autoremove: Removes unnecessary packages that were
automatically installed to satisfy dependencies but are no longer
needed.

Step-by-Step Guide
Step 1: Running apt install (Install Packages)
1. Open your terminal.
2. To install a package, run the following command:
sudo apt install <package-name>
o For example, to install the vim text editor, run:
sudo apt install vim
o The system will check if the package is available in the repositories and
show you the size of the package and any additional dependencies
that need to be installed.
3. Confirm the installation by typing Y and pressing Enter.
4. Once the installation is complete, the terminal will show a summary of the
installed package and any dependencies.
Step 2: Running apt remove (Remove Packages)
1. To remove a package but keep its configuration files, use:
sudo apt remove <package-name>
o For example, to remove vim, run:
sudo apt remove vim
o The system will ask for confirmation to remove the package. Type Y
and press Enter to proceed.
2. After removal, the terminal will show the number of packages removed.
Step 3: Running apt autoremove (Clean Up Unnecessary Packages)
1. To remove unnecessary packages, including dependencies no longer needed,
use:
sudo apt autoremove
o This command automatically removes packages that were installed as
dependencies but are no longer required by any installed packages.
2. The system will show you a list of packages that will be removed and ask for
confirmation to proceed. Type Y and press Enter.
3. After completion, the terminal will show how much space was freed.

Key Deliverables
 A log of all commands you used during the exercise.
 A brief explanation (200-300 words) of how each apt command works and
what it achieves.
 A screenshot or copy of the terminal output showing the successful
completion of apt install, apt remove, and apt autoremove.

Rubric

Criteria Excellent (5) Good (4) Fair (3) Poor (1-2)

All commands Minor errors in Multiple errors


Some incorrect
Command used correctly, command usage, in commands
usage, limited
Accuracy with appropriate but clear or unclear
understanding.
results. understanding. usage.

Incomplete
Completed all Completed most Completed basic
Hands-On tasks or
tasks with clear tasks with few tasks, but left
Completion unclear
results. issues. out some steps.
execution.

Understandin Detailed Clear explanation Basic Poor or


Criteria Excellent (5) Good (4) Fair (3) Poor (1-2)

explanation of
g of how each apt explanation, incomplete
with minor gaps.
Commands command works lacks depth. explanation.
and its utility.

Well-organized
Basic log with
Documentatio log with all Organized but Disorganized
some missing
n commands and with minor gaps. or missing log.
details.
outputs.

Clear and
Good reflection Limited
insightful Minimal or no
Reflection with some reflection, lacks
reflection on apt reflection.
insights. depth.
usage.

You might also like