Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Doel
Turn the installation ISO into a repository that survives a reboot, then find, install, inspect and undo packages.
Voordat je begint
- Copy the RHEL 10 installation ISO to
/root/on server1 (or attach it to the VM as a DVD; then it is/dev/sr0). - Move any other
.repofiles to/root/repos-backup/so you only use the local repository (move them back after the lab if you need them).
Taken
Vink een taak aan als hij klaar is. Alleen je browser onthoudt dit.
- Mount the ISO on
/repoin a way that survives a reboot. - Create the repository file
/etc/yum.repos.d/local.repowith BaseOS and AppStream from the ISO. No GPG check. - Show that both repositories are enabled.
- Find out which package provides the command
semanageand install it. - Install
httpd, show its configuration files, and find which package owns/etc/httpd/conf/httpd.conf. - Install the package group "Development Tools", look at the dnf history, and undo the group install.
- Show which files of
openssh-serverwere changed since it was installed.
Controleer je werk
findmnt /repo
dnf repolist
rpm -q policycoreutils-python-utils httpd
rpm -qc httpd
dnf history | head -5
dnf group list --installed/repois mounted (also afterreboot).dnf repolistshowslocal-BaseOSandlocal-AppStream.- semanage and httpd are installed; "Development Tools" is not installed anymore.
Hints
Toon de hints
- fstab line for an ISO file: type
iso9660, optionsdefaults,loop. For the DVD drive:/dev/sr0 /repo iso9660 defaults 0 0. baseurl=file:///repo/BaseOS— three slashes.dnf provides '*/semanage';rpm -qf FILE;rpm -V PACKAGE.
Oplossing
Toon de oplossing
- Mount the ISO for good.
- The repository file./etc/yum.repos.d/local.repo
[local-BaseOS] name=Local BaseOS baseurl=file:///repo/BaseOS gpgcheck=0 [local-AppStream] name=Local AppStream baseurl=file:///repo/AppStream gpgcheck=0 - Check the repositories.
dnf repolist - Find and install semanage.
- httpd and its files.
- Group install and undo.
- Verify the package files.
rpm -V openssh-server
Mijn notities
Nog geen notities.