FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

RASPBERRY PI PROJECT IDEAS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which commands updates the cache?
A
sudo apt-get update
B
sudo apt-cache search game | less
C
sudo apt-cache search solitaire
D
sudo apt-get install ace-of-penguins
E
penguinspuzzle
Explanation: 

Detailed explanation-1: -The ‘check’ command is a diagnostic tool. It used to update package cache and checks for broken dependencies.

Detailed explanation-2: -The sudo apt-get update command is used to download package information from all configured sources. The sources often defined in the /etc/apt/sources.list file and other files located in /etc/apt/sources.list.d directory. So when you run update command, it downloads the package information from the Internet.

Detailed explanation-3: -apt-cache queries the package cache of the APT (advanced packaging tool), which is common on Linux systems such as Debian and Ubuntu. Most commonly, this is used to search for packages and package names. It’s also useful for helping you keep track of software dependencies.

Detailed explanation-4: -The apt-cache command can do keyword-based package searches with apt-cache search keyword . It can also display the headers of the package’s available versions with apt-cache show package . This command provides the package’s description, its dependencies, the name of its maintainer, etc.

There is 1 question to complete.