Question # 11
Disable all currently managed repositories.
See the solution below in Explanation.
Solution:
subscription-manager config --rhsm.manage_repos=0
Detailed Explanation:
This disables repository management by Subscription Manager, exactly as shown in the lab dataset.
Use this when a task wants system repositories disabled so custom repos can be managed manually.
Question # 12
Extend swap by 400 MB using a new partition and make it persistent.
Create the swap partition:
fdisk /dev/sdb
partprobe /dev/sdb
Format it for swap:
mkswap /dev/sdb2
Enable it:
swapon /dev/sdb2
Persist it in /etc/fstab:
echo "/dev/sdb2 swap swap defaults 0 0" > > /etc/fstab
Verify:
swapon --show
mkswap prepares the partition as swap space.
swapon activates it immediately.
Adding an /etc/fstab entry ensures it survives reboot.
The lab uses a partition-based swap workflow.