Debian Package Management (3) Flashcards
Objective 102.4 Weight 3
Which of the following will check if an installed Debian package has missing dependencies?
1. dpkg -V package-name
2. dpkg -v package-name
3. dpkg -C package-name
4. dpkg -c package-name
5. dpkg -s package-name
6. dpkg -S package-name
- dpkg -C package-name
The dpkg -C package-name command will check if an installed Debian package has missing dependencies. (The command’s equivalent is: dpkg –audit package-name)
Which of the following will check which Debian package owns a file?
- dpkg -V file-name
- dpkg -v file-name
- dpkg -C file-name
- dpkg -c file-name
- dpkg -s file-name
- dpkg -S file-name
- dpkg -S file-name
The dpkg -S file-name command will check which Debian package owns a file. (The command’s equivalent is: dpkg –search file-name)
You need to update all the packages on a production system, and have already make the repository information current. Which of the following commands should you use?
- sudo apt-get upgrade
- sudo get-apt upgrade
- sudo get-apt dist-update
- sudo apt-get dist-update
- sudo apt-get dist-upgrade
- sudo get-apt dist-upgrade
- sudo apt-get dist-upgrade
The sudo apt-get dist-upgrade command will safely update all the packages on a production system, and have already make the repository information current, because the dist-upgrade subcommand checks for dependencies and will not update a packages if it will cause a broken dependency. It is important not to break software on a production system.
Which of the following commands provides a guided method for changing an installed Debian package’s configuration?
- sudo apt-get guide package-name
- sudo apt-cache depends package-name
- sudo apt-get reconfigure package-name
- sudo dpkg –guide package-name
- sudo dpkg –reconfigure package-name
- sudo dpkg-reconfigure package-name
- sudo dpkg-reconfigure package-name
The dpkg-reconfigure package-name command along with super user privileges allows you to reconfigure an installed Debian package app. Issuing the command puts you into a text-based screen that asks configuration questions concerning the package in order to modify the app’s configuration.
Which of the following commands will install a Debian package from a downloaded .deb package file?
- dpkg -U package-name.deb
- dpkg -u package-name.deb
- dpkg -I package-name.deb
- dpkg -i package-name.deb
- dpkg -s package-name.deb
- dpkg -S package-name.deb
- dpkg -i package-name.deb
The dpkg -i package-name.deb command will install a Debian package from a downloaded .deb package file’s contents. (The command’s equivalent is: dpkg –install package-name.deb)
Which of the following are package management utilities that can download packages from repositories, obtain any needed dependencies for the package, and then install and/or manage the packages?
- zipper
- apt-cache
- apt-get
- yum
- rpm
- dpkg
- apt-get
AND - yum
Both apt-get and yum can download packages from repositories, obtain any needed dependencies for the package, and then install and/or manage the packages. The zypper utility can too, but it is spelled with a “y” and not with an “i”. The apt-cache utility can also perform some package management functions, but it cannot grab dependencies or install the package. The rpm and dpkg utilities cannot download packages from repositories nor get package dependencies.