Use Debian package management Flashcards
Are Debian and RPM packages interchangeable?
No
What does i386.deb signify?
A Debian 386 package
What does all.deb signify?
A Debain package for all CPU types
What dpkg command is used to install a Debian package?
dpkg -i or –install
What is the difference between –remove and –purge?
Purge removes a package as well as the configuration files.
What dpkg command displays information about an uninstalled Debian package?
dpkg -I or –info
What dpkg command displays information about an installed Debian package?
dpkg -p –print-avail
What tool solely shows information about the Debian package database?
apt-cache
What apt-cache command displays package information?
apt-cache showpkg package_name
What apt-cache command displays package stats?
apt-cache stats
What apt-cache command displays package dependencies?
apt-cache depends package_name
What apt-cache command displays all packages?
apt-cache pkgnames xxx
Where is the file which lists where packages can be obtained?
/etc/apt/sources.list
What apt-get command will get up to date information about any new packages available?
apt-get update
What apt-get command will upgrade the Linux distribution?
apt-get dist-upgrade
What apt-get command will upgrade the installed packages?
apt-get upgrade
What command launches a text based menu system for packages?
dselect or aptitude
Which text based menu system for packages also accepts commands?
aptitude
What command will reset a package back to its original installation?
dpkg-reconfigure package_name
Which directory is effectively the Debian package database?
/var/lib/dpkg
What utility converts package formats?
alien
What are the four most important options of alien?
–to-deb, –to-rpm, –to-slp, –to-tgz
What does APT stand for?
advanced package management
What dpkg option will use a specified root folder?
–root=dir
What dpkg option will disable packages that rely on the one being removed?
-B –auto-deconfigure
What dpkg option will force actions to be taken?
–force-things
What dpkg option will ignore dependency info?
–ignore-depends=package
What dpkg option will check for dependencies, conflicts and other problems without installing the package?
–no-act
What dpkg option will install all packages that match the wildcard?
–recursive
What dpkg option will not install a package if a newer version is already installed?
-G
What dpkg option will not install a package if the same version is already installed?
-E –skip-same-version
What apt-cache command finds unmet dependencies?
apt-cache unmet
What apt-cache command shows all package dependencies?
apt-cache depends package_name
What apt-get command installs a package?
install
What apt-get command removes a package?
remove
What apt-get command gets the newest source package from /etc/apt/sources.list?
source
What apt-get command tests the package database for consistency?
check
What apt-get command performs housekeeping on the package database?
clean
What apt-get command will remove information about packages that cannot be downloaded?
autoclean
What apt-get option will download package files but not install them?
-d –download-only
What apt-get option will attempt to fix dependency errors?
-f –fix-broken
What apt-get option ignores package files that cannot be retreived?
-m –ignore-missing or fix-missing
What apt-get option omits progress indicators?
-q –quiet
What apt-get option tries the installation without actually performing it?
-s –simulate –just-print –dry-run –recon –no-act
What apt-get option answers yes to any y/n prompts?
-y –yes –assume-yes
What apt-get option compiles a source package after retreiving it?
-b –compile –build
What apt-get option causes apt-get not to install if an older version already exists?
–no-upgrade
What is the main configuration file for dpkg?
/etc/dpkg/dpkg.conf
What would setting the no-act option in /etc/dpkg/dpkg.conf do?
All dpkg commands would be a test run
Where is the apt configuration file?
/etc/apt/apt.conf
What would setting the Download-Only “true” option in /etc/apt/apt.conf do?
All apt-get commands would be download only