0
0
Linux CLIscripting~20 mins

snap and flatpak in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Snap & Flatpak Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
πŸ’» Command Output
intermediate
2:00remaining
Identify the output of listing installed Snap packages
What is the output of the command snap list if you have installed 'vlc' and 'spotify' snaps?
Linux CLI
snap list
AError: command not found
B
vlc 3.0.11 2344 stable
spotify 1.1.55 42 stable
C
vlc
spotify
D
Name  Version  Rev  Tracking  Publisher  Notes
vlc   3.0.11   2344 stable    videolanβœ“  -
spotify 1.1.55  42   stable    spotifyβœ“   -
Attempts:
2 left
πŸ’‘ Hint
The snap list command shows detailed columns about installed snaps.
πŸ’» Command Output
intermediate
2:00remaining
Determine the output of listing installed Flatpak applications
What is the output of the command flatpak list if you have installed 'org.gimp.GIMP' and 'com.spotify.Client'?
Linux CLI
flatpak list
A
Application ID           Version Branch Installation
org.gimp.GIMP            2.10.28 stable system
com.spotify.Client       1.1.55  stable system
B
Name: org.gimp.GIMP Version: 2.10.28
Name: com.spotify.Client Version: 1.1.55
C
org.gimp.GIMP
com.spotify.Client
DError: flatpak command not found
Attempts:
2 left
πŸ’‘ Hint
The flatpak list command shows a table with columns including Application ID and Version.
πŸ“ Syntax
advanced
1:30remaining
Which command correctly installs VLC using Snap?
Choose the correct command to install VLC media player using Snap.
Asnap add vlc
Bsnap get vlc
Csnap install vlc
Dsnap update vlc
Attempts:
2 left
πŸ’‘ Hint
The command to install a snap package uses the word 'install'.
πŸ’» Command Output
advanced
1:30remaining
What error does this Flatpak uninstall command produce if the app is not installed?
What error message appears when running flatpak uninstall org.gimp.GIMP if 'org.gimp.GIMP' is not installed?
Linux CLI
flatpak uninstall org.gimp.GIMP
AError: No matching refs found for uninstall
BUninstalled org.gimp.GIMP successfully
Cflatpak: command not found
DPermission denied
Attempts:
2 left
πŸ’‘ Hint
If the app is not installed, Flatpak reports no matching references found.
πŸš€ Application
expert
2:30remaining
Compare Snap and Flatpak commands for updating all installed apps
Which option correctly shows commands to update all installed Snap and Flatpak applications respectively?
Asnap update && flatpak refresh
Bsnap refresh && flatpak update
Csnap upgrade && flatpak upgrade
Dsnap refresh all && flatpak update all
Attempts:
2 left
πŸ’‘ Hint
Snap uses 'refresh' to update, Flatpak uses 'update'.