Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Managing Software via RPM in SUSE Linux Enterprise

In this hands-on lab, we will be using the RPM command to manage our software installations. This may be something you are tasked with to show your proficiency with software management tools.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 24, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Using a File from the Packages List, Get the Package Version for the Apache2 Installation

    Run the following commands:

    rpm -ql apache2
    rpm -qf /var/lib/apache2
    
  2. Challenge

    In the `default-server.conf`, Modify the Document Root
    1. List the configuration files to locate the default-server.conf:

      rpm -qc apache2
      
    2. Modify the configuration file:

      sudo vim /etc/apache2/default-server.conf
      
    3. Change the section dealing with document root — we need to change two places.

      Change this:

      #
      # Global configuration that will be applicable for all virtual hosts, unless
      # deleted here, or `overriden` elswhere.
      # 
      
      DocumentRoot "/srv/www/htdocs" .  <<<-- change this line
      
      #
      # Configure the DocumentRoot
      #
      <Directory "/srv/www/htdocs">    <<<-- change this line
      	# Possible values for the Options directive are "None", "All",
      	# or any combination of:
      ...
      

      To this:

      #
      # Global configuration that will be applicable for all virtual hosts, unless
      # deleted here, or overriden elswhere.
      # 
      
      DocumentRoot "/var/www/htdocs" <<<-- to this line
      
      #
      # Configure the DocumentRoot
      #
      <Directory "/var/www/htdocs"> << -- to this line
      	# Possible values for the Options directive are "None", "All",
      	# or any combination of:
      ...
      
  3. Challenge

    Use Rsync to Copy the Old Doc Root to the New Doc Root and Create an `index` File Containing the string `new doc root`
    1. Use rsync to synchronize the doc root:

      sudo rsync -avr /srv/www /var
      
    2. Create an index.html file in the new doc root with the string new doc root:

      cd /var/www/htdocs/
      sudo touch index.html
      sudo vim index.html
      <<< ensure you put the string into the index.html file>>>
      
  4. Challenge

    Verify the Package Files and Ensure the `server-default.conf` is Listed as Changed. Start Apache2 and Ensure the New `index` Loads.
    1. Run the following:

      rpm -V apache2
      
    2. Start Apache and check the index:

      sudo systemctl start apache2
      curl 127.0.0.1
      

      The result should be the string inserted in the previous task.

About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight