Complete the command to install a package named 'nano' using a package manager.
sudo apt-get [1] nanoThe install command tells the package manager to download and set up the software package.
Complete the command to update the list of available packages before installing software.
sudo apt-get [1]The update command refreshes the package list so the system knows about the latest software versions.
Fix the error in the command to upgrade all installed packages to their latest versions.
sudo apt-get [1]The upgrade command updates all installed packages to the newest versions available.
Fill both blanks to create a dictionary comprehension that maps package names to their version numbers if the version is greater than 2.
{pkg: ver[1] for pkg, ver in packages.items() if ver [2] 2}The first blank adds the string ' stable' to the version number. The second blank filters versions greater than 2.
Fill all three blanks to create a dictionary comprehension that maps uppercase package names to their version if the version is at least 3.
{ [1]: [2] for pkg, ver in packages.items() if ver [3] 3 }lower() changes keys to lowercase, not uppercase.The keys are uppercase package names, the values are versions, and the filter selects versions 3 or higher.