The document provides instructions for installing and updating software packages on a server. It details setting up a software repository, installing packages from repositories and streams, removing a package, and verifying installation of a local package. The steps include configuring a yum repository, installing packages like xsane-gimp and httpd from streams, removing cups for security, confirming and installing a local rpm package, and running scripts to evaluate and finish the exercise.
Installing and updating software packages [autosaved]
1. INSTALLING AND UPDATING SOFTWARE PACKAGES
NAME: ANIMESH KUMAR SINHA REGD.NO: 191107140044
Prof. Suvendu Kumar
Nayak
2. PERFORMANCE CHECKLIST OUTCOMES
You should be able to: * Manage software
repositories and module streams. * Install and
upgrade packages from repositories and
streams. * Install an RPM package.
In this lab, you will manage software repositories
and module streams, and install and upgrade
packages from those repositories and streams.
3. BEFORE YOU BEGIN
Log in to workstation as student using student as the password.
On workstation, run the lab software-review start command. This script ensures that serverb is
available. It also downloads any packages required for the lab exercise.
[ student@workstation -]$ lab software-review start
1. On serverb configure a software repository to obtain updates. Name the repository as errata and
configure the repository in the /etc/yum.repos.d/errata.repo file. It should access
http://content.example.com/rhel8.0/x86_64/rhcsa-practice/errata. Do not check GPG signatures.
2. On serverb, install new package xsane-gimp and the Apache HTTP Server module from the 2.4 stream
and the common profile.
3. For security reasons, serverb should not be able to send anything to print. Achieve this by removing the
cups package. Exit from the root account.
4. 4. The start script downloads the rhcsa-script-1.0.0-1.noarch.rpm package in the /home/student directory
on serverb. Confirm that the package rhcsa-script-1.0.0-1.noarch.rpm is available on serverb. Install the
package. You will need to gain superuser privileges to install the package. Verify that the package is
installed. Exit from serverb.
Evaluation On workstation, run the lab software-review grade script to confirm success on this lab.
[ student@workstation -]$ lab software-review grade
Finish On workstation, run the lab software-review finish script to complete this exercise. This script
removes the repository and packages created during this exercise.
[ student@workstation -]$ lab software-review finish
5. BEFORE YOU BEGIN
Log in to workstation as student using student as the password. On workstation, run the lab software-
review start command. This script ensures that serverb is available. It also downloads any packages
required for the lab exercise.
6. SOLUTION
INSTALLING AND UPDATING SOFTWARE PACKAGES
BEFORE YOU BEGIN
Log in to workstation as student using student as the password. On workstation, run the lab
software-review start command. This script ensures that serverb is available. It also downloads any
packages required for the lab exercise.
7. 1. On serverb configure a software repository to obtain updates. Name the repository as
errata and configure the repository in the /etc/yum.repos.d/errata.repo file. It should
access http://content.example.com/rhel8.0/x86_64/rhcsa-practice/errata. Do not check
GPG signatures.
1.1. From workstation use the ssh command to log in to serverb as the student user.
1.2. Use the su - command to switch to the root user. The
password is redhat.
8. 1.3. Create the file /etc/yum.repos.d/errata.repo with the following content
2. On serverb, install new package xsane-gimp and the Apache HTTP Server
module from the 2.4 stream and the common profile.
2.1. Use the yum list command to list the available packages for xsane-gimp.
9. 2.2. Install the latest version of the xsane-gimp package using the yum
install command.
2.3. List available modules and streams. Look for the httpd module.
Use the yum install command to install the httpd module with the
2.4 stream and the common profile.
10. 3. For security reasons, serverb should not be able to send anything to print. Achieve
this by removing the cups package. Exit from the root account. 3.1. Use the yum
list command to list the installed cups package.
11. 3.2. Use the yum remove command to remove the cups package.
3.3. Exit from the root account.
4. The start script downloads the rhcsa-script-1.0.0-1.noarch.rpm package in
the /home/ student directory on serverb. Confirm that the package rhcsa-script-1.0.0-
1.noarch.rpm is available on serverb. Install the package. You will need to gain superuser
privileges to install the package. Verify that the package is installed. Exit from serverb.
4.1. Use the rpm command to confirm that the rhcsa-script-1.0.0-1.noarch.rpm package
is available on serverb by viewing the package information.
12. 4.2. Use the sudo yum localinstall command to install the rhcsa-script-1.0.0-
1.noarch.rpm package. The password is student.
13.
14. 4.3. Use the rpm command to verify that the package is installed.
4.4. Exit from serverb
15. Evaluation
On workstation, run the lab software-review grade script to confirm success on this lab.
Finish
On workstation, run the lab software-review finish script to complete this
exercise.
This script removes the repository and packages created during this exercise.