102.4 Use Debian package management Flashcards
What does apt mean?
Advanced Package Tool
What distros of Linux use apt?
Debian based distros
What is apt used for?
To install applications and their dependencies.
To remove applications
To update/upgrade packages
What does the /etc/apt/sources.list file contain?
It contains URL listings for all software repositories that you can install software from
What is the command to update the local apt cache with a listing of packages that can be updated and installed?
apt-get update
What is the command that upgrades the packages that have upgrades available?
apt-get upgrade
What is a difference between apt and dpkg regarding dependencies?
The apt tool handles dependencies for you, the dpkg does not.
What is the command that removes an application in a Debian based system?
apt-get remove packagename
Does apt remove an application and the dependencies and configuration files of the application?
No, it will only remove the app itself.
What is the command that removes an application’s packages that are no longer needed in a Debian based system?
apt autoremove
What is the command that removes an application’s config files in a Debian based system?
apt-get purge packagename
What is the command that upgrades all packages on the system up to the next release of the distribution?
apt-get dist-upgrade
What is the command that downloads a package but doesn’t install it in a Debian based system?
apt-get download packagename
What is the command that searches through your local apt cache for a package that can be installed?
apt-cache search
What is the command that provides more technical information about a package?
apt-cache showpkg packagename
What type of file does dbpk use?
.deb
What is the command that removes an application’s config files in a Debian based system?
apt-get purge packagename
What command do you use to list out Debian packages already installed in the system?
dpkg -l packagename
What command do you use to see info about a .deb package with less details that –info?
dpkg –status packagename
What is dpkg?
It is the Debian package tool
What does a .deb file contain?
- the app or utility
- default config files for the app
- instructions on how and where to install the files
- list of dependencies the app requires
What command do yo use to install a .deb package?
dpkg -i packagename
What command do you use to list out all the files that were installed with a specified .deb package?
dpkg - L packagename
What command do you use to remove a .deb package?
dpkg -r packagename (this command leaves the config files still in the system)
What command do you use to remove a .deb package and remove any config files of the package?
dpkg -P packagename
What command do you use to see if there is anything within the dpkg database that refers to an app?
dpkg -S packagename
What command allows the modification of a package that is already installed by re-running the app’s config tool in a Debian based system?
dpkg -reconfigure packagename
What is the command that lists out basic information about a package?
apt-cache show packagename
What is the command to install an application in a Debian based system?
apt-get install packagename