Hi, @mendy
I'm afraid that I'm having some difficulty understanding what you're asking. Having said that, let me quote some excerpts from the following web page that I believe are relevant in this context:
https://ubuntu.com/server/docs/package-management
From that web page, the excerpts that seem to me to be the most relevant are the following ones (my apologies if you know all of this already):
" (...)
Advanced Packaging Tool – APT
The
apt
command is a powerful command-line tool, which works with Ubuntu’s Advanced Packaging Tool (APT). The commands contained withinapt
provide the means for installing new software packages, upgrading existing software packages, updating the package list index, and even upgrading the entire Ubuntu system.
(...)
- Update the package index
The APT package index is essentially a database of available packages from the repositories defined in the/etc/apt/sources.list
file and in the/etc/apt/sources.list.d
directory. To update the local package index with the latest changes made in the repositories, type the following:
sudo apt update
Actions of the
apt
command, such as installation and removal of packages, are logged in the/var/log/dpkg.log
log file.For further information about the use of APT, read the comprehensive APT User’s Guide, or type
apt help
(...)
dpkg
dpkg
is a package manager for Debian-based systems. It can install, remove, and build packages, but unlike other package management systems, it cannot automatically download and install packages – or their dependencies. APT and Aptitude are newer, and layer additional features on top ofdpkg
. This section covers usingdpkg
to manage locally installed packages:
- To list all packages in the system’s package database, installed and uninstalled, from a terminal prompt type:
dpkg -l
(...)"