102.4 Use Debian Package Managment Flashcards
What is the advanced package tool?
APT
- Installs applications
- Debian
On a Debian system how do you find which repositories are available
cat /etc/apt/sources.list
How do you update with apt
apt-get update
How do you upgrade the packages which have available upgrades
apt-get upgrade
How do you install/remove a package from the repositories list
apt-get install
apt-get remove
Download a package but do not install
apt-get download
How do you search for a package that you may want to install?
sudo apt-cache search
How do you display more information about a package?
sudo apt-cache showpkg
What is contained in the dpkg?
The .deb package contains:
- Application utility
- Default configuration files
- How and where to install the files that come with the package
- listing of dependencies the package requires
*apt handles dependencies, dpkg does not
Find out info about a package using the dpkg command.
dpkg –info
To find out info about a package but not as much as with –info.
dpkg –status
List packages that match a certain string.
dpkg -l
How do you install a package with dpkg?
dpkg -i
How do you list all files that were installed with a specified package?
dpkg -L
How do you purge all files belonging to a package.
dpkg -P