Complete the code to check the Raspberry Pi OS version.
cat /etc/[1]The file /etc/os-release contains the OS version information on Raspberry Pi OS.
Complete the command to update the package list on Raspberry Pi OS.
sudo apt [1]The command sudo apt update refreshes the package list to get the latest versions.
Fix the error in the command to upgrade all packages on Raspberry Pi OS.
sudo apt [1] -yThe command sudo apt upgrade -y upgrades all installed packages automatically confirming with '-y'.
Fill both blanks to create a dictionary comprehension that maps package names to their versions if the version is greater than 1.0.
versions = {pkg: info[1] for pkg, info in packages.items() if info[2] 1.0}The comprehension accesses the version attribute of info and filters for versions greater than 1.0.
Fill all three blanks to create a dictionary comprehension that maps uppercase package names to their info if the info size is greater than 100.
filtered = [1]: [2] for [3], info in packages.items() if info.size > 100}
The comprehension maps the uppercase package name (pkg.upper()) to its info, iterating over pkg and info.