Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support unattended-upgrades specific APT configuration #287

Open
rbalint opened this issue Jan 19, 2021 · 4 comments
Open

Support unattended-upgrades specific APT configuration #287

rbalint opened this issue Jan 19, 2021 · 4 comments

Comments

@rbalint
Copy link
Collaborator

rbalint commented Jan 19, 2021

There are some cases, such as #286 where it would be desired if unattended-upgrades would use a different APT configuration, than APT's command line interface.
The proposed solution is reading config from /etc/apt/unattended-upgrades.conf and /etc/apt/unattended-upgrades.conf.d/ overriding values in /etc/apt/apt.conf{|.d}.

@julian-klode
Copy link
Contributor

julian-klode commented Jan 19, 2021

FWIW, APT uses Binary::<name>::<foo> options that it then moves into <foo> to set different options for different binaries, which might be applicable here too. Though I don't think the move subtree function is exposed yet.

@rbalint
Copy link
Collaborator Author

rbalint commented Jan 19, 2021

@julian-klode Interesting! In case of u-u would the <name> be unattended-upgrade or python3 ?

@rbalint
Copy link
Collaborator Author

rbalint commented Jan 19, 2021

@julian-klode Would you prefer u-u using and documenting the Binary::<name> interface or have the separate config (dir)?

@duven87
Copy link

duven87 commented Jan 26, 2024

Hi,
I have been looking for options on how to let update specific packages and I can't find anything.
In my case, I want my servers to only update updates with the security label with the exception of cloud-init, qemu-agent,etc. which is with label updates.
I have tried:

"origin=cloudinit";

but it keeps ignoring it.
Is there any idea in the future to add package update exceptions ignoring allow pattern/origin policies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants