Homework 3: Linux Package Management#

Due Date: Tuesday, September 22, 2026

Environment Setup and Prerequisites#

Before starting this assignment, ensure you have completed the exercises in Lectures 2 and 3 and that your virtual machines (kvm3 and rocky10-1) are deployed and running.

Virtual Desktop Workflow Map#

[Web access to Ravada portal with authentication] ===> [Start VM] ===> [Access VM via SSH with provided port]

Setup Instructions#

  1. Log into your Virtual Desktop (VD).

  2. Create a working directory named HW_3:

    mkdir HW_3
    cd HW_3
    
  3. Inside the HW_3 directory, create a file named README.

  4. Document all commands used to complete the following exercises inside your README file.


Part 1: Debian Package Management (kvm3)#

Perform the following operations on the kvm3 virtual machine.

Task 1.1: High-Level Management with apt#

  • Install Package: Install the package lua5.4.

  • Download Package: Download the package archive for lua5.3 without installing it.

Task 1.2: Low-Level Management with dpkg#

  • List Files: List all files installed and managed by the lua5.4 package.

  • Integrity Check:

    1. Manually delete the file /usr/share/doc/lua5.4/changelog.Debian.gz.

    2. Verify the installed lua5.4 package to detect missing or altered files.

  • Archive Extraction: Extract the contents of the downloaded lua5.3 package file into a new directory named LUA.

  • Remove Package: Uninstall the lua5.4 package.


Part 2: RPM Package Management (rocky10-1)#

Perform the following operations on the rocky10-1 virtual machine.

Task 2.1: High-Level Management with dnf#

  • Install Package: Install the package lua.

  • Download Package: Download the package archive for lua without installing it.

Task 2.2: Low-Level Management with rpm#

  • List Files: List all files contained in the installed lua package.

  • Integrity Check:

    1. Manually delete the file /usr/share/man/man1/lua.1.gz.

    2. Verify the installed lua package for consistency to identify missing files.

  • Remove Package: Uninstall the lua package.