[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#993287: "apt-get install" doesn't preserve autoinstall status of upgraded packages



Control: tag -1 confirmed

On Mon, Aug 30, 2021 at 11:27:47AM +0300, Esa Peuha wrote:
> Package: apt
> Version: 2.3.8
> 
> The man page for apt-get states that the command to upgrade a specific
> package is "apt-get install". Therefore, if "apt-get install foo" does
> upgrade package foo which has been marked as automatically installed,
> I would expect foo's autoinstall status to be preserved, and this is
> what has happened until recently. However, since apt 2.3.3 foo will be
> marked as manually installed, which seems to be an unintended change.

Confirmed with git snapshot on Ubuntu

$ apt-mark showauto | grep pci.ids
pci.ids
$ sudo apt install pci.ids
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  pci.ids
1 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Need to get 0 B/248 kB of archives.
After this operation, 19,5 kB of additional disk space will be used.
ySupported
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-o6acdtcz/@' in '/tmp/apt-btrfs-snapshot-mp-o6acdtcz/@apt-snapshot-2021-08-30_10:35:18'
Keeping @apt-snapshot-2021-08-30_10:35:18 due to latest, hourly, daily
Keeping @apt-snapshot-2021-08-30_10:34:36 due to latest
Keeping @apt-snapshot-2021-08-29_06:54:06 due to latest, hourly, daily
Keeping @apt-snapshot-2021-08-27_21:25:52 due to hourly, daily
Reading changelogs... Done
(Reading database ... 428854 files and directories currently installed.)
Preparing to unpack .../pci.ids_0.0~2021.08.22-1_all.deb ...
Unpacking pci.ids (0.0~2021.08.22-1) over (0.0~2021.04.08-1) ...
Setting up pci.ids (0.0~2021.08.22-1) ...
$ apt-mark showauto | grep pci.ids

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: