Exercise - Install Apache with YaST

Completed

With YaST, you can add, remove, and manage software packages on your SLES virtual machine.

It's time to add a package to the server that's going to host your company's website. In this exercise, you'll use the YaST admin tool to search for and install the Apache package.

Start YaST

  1. To launch the ncurses-based version of YaST, ssh into your machine and run yast2 as follows:

    sudo yast2
    
  2. Use the Tab or arrow keys to navigate between interface elements like menu items, fields, and buttons.

    Screenshot of the YAST control center text interface immediately after starting.

    All menu items and buttons in YaST can be accessed using the appropriate function keys or keyboard shortcuts. For example, you can cancel the current operation by pressing F9, while the F10 key can be used to accept the changes. Each menu item and button in YaST's ncurses-based interface has a highlighted letter in its label. This letter is part of the keyboard shortcut assigned to the interface element. For example, the letter Q is highlighted in the Quit button. This means that you can activate the button by pressing Alt–Alt+Q.

Install Software Packages with YaST

  1. Once inside the YaST Control Center, launch the YaST Software Management module: Software > Software Management

    Screenhot of YaST Control Center selecting Software Management.

  2. Select the Filter menu (ALT+F] and select the line with Search.

    Screenshot of YaST Control Center showing Search highlighted in the filter menu.

    Screenshot showing the YaST Control Center search screen.

  3. In the search field at the top left, enter:

    apache <RETURN> 
    

    Notice that the icon or marker (i) in front of the apache entry on the right shows an empty box. This indicates that the package is not yet installed.

  4. Switch to the right box with <TAB> and go down and select apache2 in the list with the <SPACE> bar.

    The icon changes to a check mark (or "+"). Any shown dependencies will also be indicated (a+).

    Screenshot of search results for apache2 in YaST Control Center.

  5. Click Accept to install the apache package.

    A new window will be shown with the additional dependent packages which need to be installed too. Click Continue.

    Screenshot in YaST showing additional dependent packages to be added.

  6. In the Installation dialog, click Finish. You will get an information window presented with the summary of your install.

    Screenshot of YaST showing installation report.

  7. Close the YaST interface.