First 50 of 200 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1Oracle Linux installation, deployment, and system configuration
When installing Oracle Linux 9 with the default Anaconda partitioning scheme on a UEFI system, which partition layout is created by default?
- A single ext4 root partition with no separate boot or swap partitions
- A /boot partition on LVM and an XFS root partition without any EFI partition
- A /boot/efi partition, a btrfs root subvolume set, and a zram-based swap device
- A /boot/efi EFI System Partition, a /boot partition, and an LVM volume group containing / and swap Correct answer.
Explanation
The default automatic layout on UEFI systems creates a small EFI System Partition mounted at /boot/efi, a separate /boot partition formatted with XFS, and an LVM volume group holding the root volume and swap. This separation keeps bootloaders accessible before LVM activation while allowing flexible root sizing.
Question 2Oracle Linux installation, deployment, and system configuration
An administrator boots the Oracle Linux 9 full DVD ISO and needs a minimal server installation without a graphical environment. Which Anaconda Software Selection option should be chosen?
- Custom Operating System
- Server with GUI
- Workstation
- Minimal Install Correct answer.
Explanation
The Minimal Install environment installs only the base packages needed for a functional command-line system, with no desktop. Server with GUI and Workstation both pull in graphical stacks that are unnecessary for a headless server.
Question 3Oracle Linux installation, deployment, and system configuration
Which command registers a new Oracle Linux 9 system with the Unbreakable Linux Network using an existing ULN credentials file?
- uln_register --server=uln.example.com
- uln_register --username=user --password=pass
- uln_register --credentials=/etc/sysconfig/rhn/up2date Correct answer.
- uln_register --token=license-token
Explanation
The uln_register command supports a --credentials option that reads a pre-generated credentials file, which is the recommended approach for automated deployments. Providing credentials inline or via token is not the standard non-interactive method for ULN.
Question 4Oracle Linux installation, deployment, and system configuration
After installing Oracle Linux 9, which command enables the firewall service and makes it start automatically at boot?
- systemctl enable --now firewalld Correct answer.
- service firewalld start
- firewall-cmd --reload
- iptables-save > /etc/sysconfig/iptables
Explanation
systemctl enable --now both enables the unit for future boots and starts it immediately, which is the standard way to activate firewalld persistently. Reloading rules or starting a service once does not configure boot-time enablement.
Question 5Oracle Linux installation, deployment, and system configuration
Which file controls the default kernel parameters passed by GRUB 2 at boot time on Oracle Linux 9?
- /etc/kernel/cmdline
- /etc/default/grub Correct answer.
- /etc/sysconfig/kernel
- /boot/grub2/grub.cfg
Explanation
The GRUB_CMDLINE_LINUX setting in /etc/default/grub defines the default kernel arguments, and the grub.cfg file is regenerated from it. Editing grub.cfg directly is overwritten whenever the configuration is rebuilt.
Question 6Oracle Linux installation, deployment, and system configuration
An administrator adds a new disk /dev/sdb and wants to create an XFS filesystem with a persistent mount at /data. Which sequence accomplishes this?
- mkfs.xfs /dev/sdb; mount /dev/sdb /data; add a UUID entry to /etc/fstab
- mkfs.ext4 /dev/sdb; mount /dev/sdb /data; add a LABEL entry to /etc/fstab
- mkfs.xfs /dev/sdb; echo /dev/sdb /data xfs defaults 0 0 >> /etc/fstab; mount -a Correct answer.
- fdisk /dev/sdb; mount /dev/sdb /data; run systemctl daemon-reload
Explanation
Creating the XFS filesystem, adding an fstab entry, and running mount -a both mounts the filesystem and verifies the fstab entry works. Using the device path in fstab is valid, though UUIDs are more robust.
Question 7Oracle Linux installation, deployment, and system configuration
Which command generates a new GRUB 2 configuration after editing /etc/default/grub on a BIOS-based Oracle Linux 9 system?
- update-grub2 --force
- dracut --regenerate-all
- grub2-mkconfig -o /boot/grub2/grub.cfg Correct answer.
- grub2-install /dev/sda
Explanation
grub2-mkconfig reads /etc/default/grub and the scripts in /etc/grub.d to write a fresh grub.cfg, so the -o path must point to the active configuration file. On BIOS systems that file lives at /boot/grub2/grub.cfg.
Question 8Oracle Linux installation, deployment, and system configuration
A server must resolve hostnames using a local DNS server at 192.168.10.5 and fall back to 8.8.8.8. Which configuration achieves this?
- Set NM_CONTROLLED=no in the interface file and add the servers manually
- Edit /etc/hosts to list both addresses
- Add both nameserver lines to /etc/resolv.conf and rely on NetworkManager to preserve them
- Set DNS1=192.168.10.5 and DNS2=8.8.8.8 in the connection profile and reactivate it Correct answer.
Explanation
NetworkManager connection profiles accept DNS1 and DNS2 settings, and reactivating the connection writes them into the managed resolv.conf. This keeps the configuration persistent because NetworkManager rewrites resolv.conf from the profile.
Question 9Oracle Linux installation, deployment, and system configuration
Which utility is the supported interactive tool for configuring network connections on Oracle Linux 9?
- netconfig
- system-config-network
- nmcli Correct answer.
- ifconfig
Explanation
nmcli is the command-line front end to NetworkManager, which manages networking on Oracle Linux 9. The older netconfig and system-config-network tools are not part of the default management stack in this release.
Question 10Oracle Linux installation, deployment, and system configuration
An administrator needs the system to boot into a non-graphical multi-user target by default. Which command sets this persistently?
- init 3
- systemctl isolate multi-user.target
- systemctl start multi-user.target
- systemctl set-default multi-user.target Correct answer.
Explanation
systemctl set-default changes the default.target symlink so the selected target is used on every boot. Isolating or starting a target only affects the current runtime state.
Question 11Oracle Linux installation, deployment, and system configuration
Which package manager command installs the httpd package and its dependencies on Oracle Linux 9?
- dnf provides httpd
- yum localinstall httpd.rpm
- rpm -ivh httpd
- dnf install httpd Correct answer.
Explanation
dnf install resolves dependencies from configured repositories and installs the named package, which is the standard method on Oracle Linux 9. The rpm command installs a local file without resolving repository dependencies.
Question 12Oracle Linux installation, deployment, and system configuration
A systems administrator wants to install the Extra Packages for Enterprise Linux repository on Oracle Linux 9 using the supported package. Which command is correct?
- dnf install oraclelinux-release-el9 epel-release
- dnf config-manager --add-repo epel
- dnf install epel-release Correct answer.
- curl -o /etc/yum.repos.d/epel.repo https://example.com/epel.repo
Explanation
The epel-release package from the Oracle Linux repositories installs the EPEL repository definition and its GPG key. This is the supported way to enable EPEL without manually crafting repo files.
Question 13Oracle Linux installation, deployment, and system configuration
Which Oracle Linux 9 feature provides a bootable snapshot of the root filesystem that can be used to roll back a failed update?
- Boot Environment snapshots managed by the bootc-style tooling Correct answer.
- Oracle Ksplice zero-downtime updates
- LVM thin snapshots taken manually before updates
- Btrfs snapshots
Explanation
Oracle Linux 9 provides Boot Environments, which use btrfs snapshots of the root filesystem and integrate with GRUB so a previous environment can be selected at boot. This enables rollback after a problematic update without manual snapshot management.
Question 14Oracle Linux installation, deployment, and system configuration
An administrator wants to apply kernel security fixes without rebooting the server. Which Oracle Linux technology supports this?
- kpatch via the standard repositories
- dnf-automatic
- Ksplice Correct answer.
- UEK Live Patch Manager
Explanation
Oracle Ksplice applies kernel updates to a running system without a reboot, which is its defining capability on Oracle Linux. The other options either automate package updates or are not the Oracle-provided live patching service.
Question 15Oracle Linux installation, deployment, and system configuration
Which file must be edited to change the system hostname persistently on an Oracle Linux 9 system using hostnamectl?
- /etc/sysconfig/network
- /etc/hosts
- /etc/resolv.conf
- /etc/hostname Correct answer.
Explanation
On Oracle Linux 9 the static hostname is stored in /etc/hostname, and hostnamectl writes to that file when setting the hostname. /etc/hosts maps names to addresses but is not the source of the system hostname.
Question 16Oracle Linux installation, deployment, and system configuration
A new Oracle Linux 9 installation must synchronize time with an internal NTP server at ntp.example.com. Which command configures chrony to use that server?
- Add a server line for ntp.example.com to /etc/chrony.conf and restart chronyd Correct answer.
- chronyc sources add ntp.example.com
- ntpdate ntp.example.com
- timedatectl set-ntp ntp.example.com
Explanation
chronyd reads its time sources from /etc/chrony.conf, so adding a server directive and restarting the service makes the configuration persistent. chronyc is a monitoring and control client, not the configuration editor.
Question 17Oracle Linux installation, deployment, and system configuration
Which SELinux mode logs policy violations but does not enforce the policy?
- Permissive Correct answer.
- Enforcing
- Disabled
- Targeted
Explanation
Permissive mode records AVC denials in the audit log while allowing the actions to proceed, which is useful for troubleshooting policy. Enforcing blocks the denied actions, and Disabled turns SELinux off entirely.
Question 18Oracle Linux installation, deployment, and system configuration
After installing Oracle Linux 9, an administrator needs to install a package that is only available in the AppStream repository. Which command searches the enabled repositories for the package name?
- dnf repolist --all
- dnf info package-name
- dnf list --installed
- dnf search package-name Correct answer.
Explanation
dnf search queries the metadata of enabled repositories and returns packages whose names or summaries match the term. Listing installed packages or repository IDs does not search for available packages.
Question 19Oracle Linux installation, deployment, and system configuration
An administrator creates a new LVM logical volume and wants to extend it later without unmounting. Which filesystem on Oracle Linux 9 supports online growth with xfs_growfs?
- vfat
- ext3
- XFS Correct answer.
- iso9660
Explanation
XFS supports online growth through xfs_growfs, which is the default filesystem on Oracle Linux 9. Shrinking is not supported, but extending a mounted XFS filesystem is a routine operation.
Question 20Oracle Linux installation, deployment, and system configuration
Which command displays the current default systemd target on an Oracle Linux 9 host?
- systemctl list-units --type=target
- systemctl get-default Correct answer.
- runlevel
- systemctl status default.target
Explanation
systemctl get-default prints the target that the default.target symlink points to, which is the boot default. Other commands list or describe targets but do not report the configured default.
Question 21Oracle Linux installation, deployment, and system configuration
An administrator must ensure a service starts only after the network is fully online. Which systemd directive in the unit file expresses this dependency?
- Wants=network.target
- BindsTo=network.target
- Requires=network.target
- After=network-online.target Correct answer.
Explanation
After= controls ordering, so the unit starts after network-online.target has been reached. Ordering alone does not pull the target in, which is why a matching Wants= is often added alongside it.
Question 22Oracle Linux installation, deployment, and system configuration
Which command creates a new user account named deploy with a home directory and bash as the login shell on Oracle Linux 9?
- passwd -d deploy
- adduser deploy --shell bash
- useradd -m -s /bin/bash deploy Correct answer.
- usermod -s /bin/bash deploy
Explanation
useradd -m creates the home directory and -s sets the login shell, so one command produces the requested account. usermod modifies an existing account, and passwd manages passwords.
Question 23Oracle Linux installation, deployment, and system configuration
An administrator needs to grant the deploy user permission to run all commands through sudo without a password prompt. Which file entry accomplishes this?
- root ALL=(deploy) NOPASSWD: ALL
- %deploy ALL=(ALL) ALL
- deploy ALL=(ALL) ALL
- deploy ALL=(ALL) NOPASSWD: ALL Correct answer.
Explanation
The NOPASSWD tag in the sudoers rule suppresses the password prompt for the listed commands. Without that tag, sudo still authenticates the invoking user before running the command.
Question 24Oracle Linux installation, deployment, and system configuration
A system fails to boot after a kernel update and drops to the GRUB menu. Which action allows booting the previously installed kernel?
- Run grub2-install /dev/sda from the GRUB prompt
- Select the older kernel entry in the GRUB menu and boot it Correct answer.
- Boot into rescue mode and reinstall the kernel package
- Edit /etc/default/grub to set GRUB_DEFAULT=0 and reboot
Explanation
GRUB lists each installed kernel as a separate menu entry, so selecting the previous kernel boots the known-good version. Once booted, the administrator can reinstall or fix the newer kernel at leisure.
Question 25Oracle Linux installation, deployment, and system configuration
Which Oracle Linux 9 tool provides a web-based interface for system management tasks such as services, storage, and logs?
- YaST
- Webmin
- Cockpit Correct answer.
- Landscape
Explanation
Cockpit is the web console included with Oracle Linux and is enabled via the cockpit.socket systemd unit. It exposes services, storage, networking, and log views through a browser.
Question 26Oracle Linux installation, deployment, and system configuration
An administrator performs a fresh Oracle Linux 9 installation using the boot ISO and needs to install the base system packages from a repository reachable only over HTTPS. Which installation source type must be selected to complete the installation?
- NFS export containing only the AppStream packages
- CD/DVD media containing the full binary distribution
- Hard drive partition holding an extracted ISO image
- Network source pointing to the repository base URL Correct answer.
Explanation
Oracle Linux 9 boot media contains only the installer environment, so the payload must come from a repository. Selecting a network source and supplying the base URL of the enabled BaseOS and AppStream repositories lets the installer resolve packages over HTTPS. Local media or NFS options work only when they actually contain the required repository trees.
Question 27Oracle Linux installation, deployment, and system configuration
During an automated Oracle Linux 9 deployment, an administrator needs the installer to configure the disk layout, root password, and time zone without any interactive prompts. Which mechanism accomplishes this?
- A cloud-init user-data file placed in /var/lib/cloud/seed
- An Ansible playbook executed by the installer before package selection
- A Kickstart file supplied via inst.ks on the kernel command line Correct answer.
- A systemd unit enabled in the installer environment
Explanation
Kickstart is the native Oracle Linux unattended installation format and the installer reads it when inst.ks= points to a local or network location. The file supplies commands for partitioning, authentication, and locale so no interaction is required. Other automation tools run after the system exists rather than driving the installer itself.
Question 28Oracle Linux installation, deployment, and system configuration
An administrator is preparing an Oracle Linux 9 server that will host a database and must confirm that the tuned profile recommended for database workloads is active. Which command shows the currently active tuned profile?
- tuned-adm recommend
- tuned-adm list
- tuned-adm profile_info
- tuned-adm active Correct answer.
Explanation
tuned-adm active reports the profile currently applied to the running system, which is what an administrator verifies after tuning. The list and recommend subcommands describe available and suggested profiles rather than the active one. profile_info shows details about a named profile, not the current selection.
Question 29Oracle Linux installation, deployment, and system configuration
A production Oracle Linux 9 host must keep the audit service running and automatically restart it if it crashes, while still allowing manual stops during maintenance. Which systemd unit setting achieves this?
- Restart=on-success
- Restart=on-failure Correct answer.
- Restart=no
- Restart=always
Explanation
Restart=on-failure restarts the service when it exits abnormally, such as a crash or non-zero exit, but not when an administrator stops it cleanly. This preserves automatic recovery while honoring deliberate maintenance stops. Restart=always would relaunch the unit even after an intentional stop.
Question 30Oracle Linux installation, deployment, and system configuration
An administrator must verify that a downloaded Oracle Linux 9 ISO image matches the checksum published by Oracle before using it for installation. Which approach validates the image integrity?
- Compare the output of file against the published media type
- Compare the output of md5sum against the published checksum value
- Compare the output of sha256sum against the published checksum value Correct answer.
- Compare the file size reported by ls -l against the published size
Explanation
Oracle publishes SHA-256 checksums for its installation images, so computing sha256sum on the downloaded file and comparing it to the published value detects corruption or tampering. A matching hash confirms the bytes are identical to the source image. Other checks do not verify content integrity.
Question 31Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
On Oracle Linux 9, which command installs the package file nginx-1.20.1-1.el9.x86_64.rpm from the current directory using DNF so that dependencies are resolved from enabled repositories?
- rpm -i nginx-1.20.1-1.el9.x86_64.rpm
- yum deplist nginx-1.20.1-1.el9.x86_64.rpm
- dnf localinstall nginx-1.20.1-1.el9.x86_64.rpm --nodeps
- dnf install ./nginx-1.20.1-1.el9.x86_64.rpm Correct answer.
Explanation
DNF accepts a path to a local RPM file as an install argument and still resolves its dependencies from enabled repositories. The leading ./ makes the argument an unambiguous file path rather than a package name. This is the supported replacement for the older localinstall behavior.
Question 32Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which file records the repository definitions that DNF reads on Oracle Linux, where each stanza typically contains name, baseurl, and gpgcheck?
- /etc/yum.repos.d/ Correct answer.
- /etc/dnf/dnf.conf
- /var/lib/rpm/
- /etc/sysconfig/rhn/
Explanation
DNF reads repository stanzas from files ending in .repo inside /etc/yum.repos.d/. The main /etc/dnf/dnf.conf holds global options and can also define repositories, but the conventional location for repo definitions is the yum.repos.d directory.
Question 33Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which rpm query prints the list of files installed by the package bash?
- rpm -ql bash Correct answer.
- rpm -qc bash
- rpm -qf bash
- rpm -qi bash
Explanation
The -ql (query list) option lists every file owned by an installed package. The -qf form works in the opposite direction, mapping a file path back to its owning package.
Question 34Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which command verifies the GPG signature of an RPM file without installing it?
- rpm -V nginx.rpm
- rpm -qp --scripts nginx.rpm
- rpm -K nginx.rpm Correct answer.
- rpm --import nginx.rpm
Explanation
rpm -K checks the digests and GPG signature of a package file, reporting OK when the signature validates against an imported key. It performs no installation and no file comparison.
Question 35Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
What does the DNF subcommand history undo <ID> do?
- Removes all repository metadata files
- Rolls back the RPM database to its initial state
- Reverses the package changes made by the specified transaction Correct answer.
- Deletes the DNF cache for the transaction
Explanation
dnf history undo reverses the actions of a recorded transaction, reinstalling removed packages and removing installed ones where possible. It operates on package state, not on caches or the whole database.
Question 36Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which Oracle Linux tool registers a system with Unbreakable Linux Network and manages channel subscriptions from the command line?
- dnf config-manager
- subscription-manager
- uln_register Correct answer.
- yum-config-manager
Explanation
Oracle provides uln_register (and the ULN web interface) to register a system with Unbreakable Linux Network and enable channels. subscription-manager belongs to the Red Hat entitlement model, not to ULN.
Question 37Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which option of rpm -e removes a package even when other installed packages depend on it?
- --test
- --force
- --allmatches
- --nodeps Correct answer.
Explanation
--nodeps tells RPM to skip the dependency check during erasure, leaving dependent packages broken. --test only simulates the transaction and reports what would happen.
Question 38Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
A repository stanza contains enabled=0. What is the effect when running dnf install for a package available only in that repository?
- DNF installs the package but skips GPG checking
- DNF reports that no package is available because the repository is disabled Correct answer.
- DNF installs it after prompting for confirmation
- DNF enables the repository automatically for that transaction
Explanation
The enabled flag controls whether DNF considers a repository at all; with enabled=0 its packages are invisible to normal transactions. The repository must be enabled, or used via --enablerepo, before its packages can be installed.
Question 39Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which command lists all packages available from enabled repositories that are not yet installed?
- dnf repolist all
- dnf provides
- dnf list available Correct answer.
- dnf list installed
Explanation
dnf list available shows packages present in enabled repositories that are not installed on the system. It is the counterpart of dnf list installed, which reports only installed packages.
Question 40Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
You need to know which package provides the file /usr/bin/htpasswd. Which command answers this?
- rpm -ql /usr/bin/htpasswd
- dnf search htpasswd
- dnf info /usr/bin/htpasswd
- dnf provides /usr/bin/htpasswd Correct answer.
Explanation
dnf provides searches the file lists of available packages and reports which package supplies the given path. This works even when the package is not yet installed.
Question 41Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
After editing a .repo file to add a new mirror, which command refreshes the metadata cache so DNF sees the new content?
- dnf makecache Correct answer.
- dnf repoquery
- dnf updateinfo
- dnf distro-sync
Explanation
dnf makecache downloads and stores metadata for enabled repositories, so newly added or changed repositories are reflected immediately. Most DNF commands also refresh metadata automatically when it is stale.
Question 42Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
What is the purpose of a modular stream in Oracle Linux AppStream repositories?
- To store GPG keys used for signature verification
- To provide alternative versions of a package, such as different language runtimes, selectable per system Correct answer.
- To deliver only security errata for base packages
- To split a repository across multiple baseurl mirrors
Explanation
Modules group packages into streams so a system can choose among alternative versions of software such as php or nodejs. Enabling a stream selects which version set is visible for installation.
Question 43Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which command lists the transactions recorded in the DNF history with their IDs?
- dnf history undo
- dnf history info
- dnf history list Correct answer.
- dnf history rollback
Explanation
dnf history list shows past transactions with their IDs, which are then used by info, undo, or rollback. The ID is the handle for inspecting or reversing a specific transaction.
Question 44Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which rpm option reports which installed package owns the file /etc/passwd?
- rpm -ql /etc/passwd
- rpm -qf /etc/passwd Correct answer.
- rpm -qi /etc/passwd
- rpm -qc /etc/passwd
Explanation
The -qf query form maps a file path to the installed package that owns it. It is the reverse of -ql, which lists files for a package name.
Question 45Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which command shows the dependencies that the installed package httpd requires?
- rpm -qR httpd Correct answer.
- rpm -q --scripts httpd
- rpm -q --whatrequires httpd
- rpm -q --changelog httpd
Explanation
rpm -qR prints the capabilities the package requires, which is the dependency list. The --whatrequires form answers the opposite question of which packages need httpd.
Question 46Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
What does dnf distro-sync do on an Oracle Linux system?
- Upgrades every package to the highest version in any repository
- Removes packages that are not in any repository
- Aligns installed package versions with the versions available in enabled repositories Correct answer.
- Synchronizes the system clock with repository servers
Explanation
distro-sync brings installed packages to the versions offered by enabled repositories, which can mean upgrading or downgrading. This is useful after changing repository sets or release versions.
Question 47Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which DNF configuration directive in a repository stanza points to a single fixed HTTP location for packages?
- mirrorlist
- metalink
- baseurl Correct answer.
- gpgkey
Explanation
baseurl gives one or more fixed URLs to the repository content. metalink and mirrorlist instead point to dynamic lists of mirrors that DNF resolves at runtime.
Question 48Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
Which command installs the package group named 'Development Tools' on Oracle Linux 9?
- dnf install @development-tools-group
- dnf repoquery --group "Development Tools"
- dnf module install "Development Tools"
- dnf group install "Development Tools" Correct answer.
Explanation
dnf group install installs all packages belonging to a named package group. On Oracle Linux 9 the group name is passed as shown, and dnf group list shows available groups.
Question 49Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
What is the effect of running rpm -Uvh kernel-5.15.0-1.el9.x86_64.rpm when an older kernel is already installed?
- The transaction fails because RPM refuses to upgrade kernels
- Only the kernel modules are updated
- The older kernel is erased and replaced
- The new kernel is installed alongside the older one because the kernel package is install-only Correct answer.
Explanation
Kernel packages are marked so that an upgrade installs the new version in parallel, preserving the running kernel for fallback. This is why multiple kernel versions appear in the boot loader after updates.
Question 50Package management with RPM and DNF/YUM, including Oracle Linux repositories and ULN
A package fails to install with 'Error: GPG check FAILED'. Which action resolves the cause while keeping signature verification active?
- Clear the DNF cache with dnf clean all
- Import the correct public key with rpm --import and retry Correct answer.
- Set gpgcheck=0 in the repository stanza
- Add --nodeps to the install command
Explanation
The failure means the package signature does not validate against a trusted key, so importing the repository's correct public key allows verification to succeed. Disabling gpgcheck would hide the problem rather than fix it.