Update behaviour of APT
Hi,
I have a metapackage with a few dependencies. When I update the metapackage (apt-get install metapackage), only the metapackage itself is updated and not the corresponding dependencies. I think, this is a reasonable behaviour. However, is there a way to force an update of the dependencies during the "apt-get install"? I already tried to determine and install the dependencies in the preinst script, but that logically won't work as the installer is locked during installation. Thanks in advance! W.E. |
apt-get upgrade is used to upgrade packages, not install.
|
Quote:
I tried this, but that won't upgrade selectively my metapackage with the corresponding dependencies.. |
apt update or apt-get update will download package information and get updated version of packages or their dependencies.
apt upgrade or apt-get upgrade will install available updates to all packages from the above information. Before installing your package you should make sure the system is updated. While apt or apt-get checks for dependencies as far as I know it does not check for the latest packages which is why you need to make sure the system is updated prior to install your package. |
Quote:
However, the question is: is it possible to trigger the update of only the dependent packages by updating/upgrading the metapackage? |
probably this: https://askubuntu.com/questions/3216...endencies-only
|
All times are GMT -5. The time now is 07:25 AM. |