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

Bug#431737: apt: Enable APT::Never-MarkAuto-Sections for metapackages, once section is added



On Wed, Feb 29, 2012 at 05:48:32AM +0000, Ben Hutchings wrote:
> I'm a bit confused about the status of this bug.
> 
> The 'metapackages' section has been added and the default configuration
> has the requested change, but (1) the configuration variable doesn't
> appear to be documented (2) it doesn't appear to have any effect.

Yes, it's not documented. On behavior, I don't know. 


> 
> I tested with apt 0.8.15.9 installed, and a local repository containing
> a modified linux-latest package:
> 
> # apt-config dump | grep ^APT::Never-MarkAuto-Sections
> APT::Never-MarkAuto-Sections "";
> APT::Never-MarkAuto-Sections:: "metapackages";
> ...
> # apt-get purge linux-image-{3.2.0-1-,}686-pae
> ...
> # grep -A2 linux-image /var/lib/apt/extended_states
> # apt-get install -y linux-image-686-pae
> ...
> # dpkg -s linux-image-686-pae | grep ^Section:
> Section: metapackages
> # grep -A2 linux-image /var/lib/apt/extended_states
> Package: linux-image-3.2.0-1-686-pae
> Architecture: i386
> Auto-Installed: 1
> # apt-get remove -y linux-image-686-pae
> ...
> # grep -A2 linux-image /var/lib/apt/extended_states
> Package: linux-image-3.2.0-1-686-pae
> Architecture: i386
> Auto-Installed: 1
> 
> Now, I do actually want the dependencies of metapackages built from
> linux-latest still to be marked auto-installed.  But I'm not sure
> whether this is the intended behaviour or not.

The intented behavior should be to have them manually installed
AFAIK. But kernel packages are special anyway, they won't be
treated as automatically installed even if they are, thanks
to APT::NeverAutoRemove in /etc/apt/apt.conf.d/01autoremove --
APT will never automatically remove a kernel image or the
firmware-linux meta packages.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Attachment: pgpjuYEBFiAo6.pgp
Description: PGP signature


Reply to: