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

Lab Managing Packages With Apt

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)
7 views3 pages

Lab Managing Packages With Apt

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 update, apt upgrade, and apt full-

upgrade
Objective
Students will learn how to use apt (Advanced Package Tool) to manage software
packages on a Debian-based Linux system. The focus will be on updating package
lists, upgrading installed packages, and performing full system upgrades.
Equipment/Tools Needed
 Computer with Linux installed (Debian, Ubuntu, or a derivative)
 Terminal application

Content
1. Introduction to apt Commands
o apt update: Refreshes the package lists to ensure you have the latest
information about available packages and updates.
o apt upgrade: Installs available updates for installed packages without
removing any packages or installing new ones.
o apt full-upgrade: Upgrades installed packages and removes or
installs new packages if necessary to complete the upgrade process.

Step-by-Step Guide
Step 1: Running apt update (Update Package Lists)
1. Open your terminal.
2. To update your system’s package list, run the following command:
sudo apt update
o This command contacts the package repositories and updates the local
list of available packages.
o You'll see output showing the repositories being checked and how
many packages can be upgraded.
3. If new package lists are available, the system will report them. No changes
are made to installed packages at this stage.
Step 2: Running apt upgrade (Upgrade Installed Packages)
1. After running apt update, you can upgrade your installed packages. Run the
following command:
sudo apt upgrade
o This command upgrades all of the installed packages to the latest
versions available from the repositories.
o The system will show you a list of packages that will be upgraded and
ask for confirmation to continue. Type Y and press Enter to proceed.
2. Once the upgrade process is complete, you’ll see a summary of the changes
made.
Step 3: Running apt full-upgrade (Full System Upgrade)
1. To perform a more comprehensive upgrade, which can also remove obsolete
packages or install new packages if needed, use:
sudo apt full-upgrade
o This command ensures that your system is fully upgraded by not only
updating and upgrading existing packages but also resolving
dependencies that might require installing or removing additional
packages.
o The system will ask for your confirmation to proceed. Type Y and press
Enter to continue.
2. After the upgrade is complete, you’ll see a summary of what was upgraded,
removed, or installed.

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 update, apt upgrade, and apt full-upgrade.

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.

Hands-On Completed all Completed most Completed basic Incomplete


Completion tasks with clear tasks with few tasks, but left tasks or
results. issues. out some steps. unclear
Criteria Excellent (5) Good (4) Fair (3) Poor (1-2)

execution.

Detailed
Understandin explanation of Basic Poor or
Clear explanation
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