Which apt command upgrades installed packages and may remove packages when needed to resolve changed dependencies?