Ubuntu 16.04 - Apply ESM security patches only using unattended-upgrade

ng flag

We have purchased ESM for a number Ubuntu 16.04 servers, installed Ubuntu Advantage Tools and enabled UA. How can I install only security patches including ESM using unattended-upgrade command? We don't want to run 'apt-get upgrade'

ChanganAuto avatar
us flag
It's a question for ESM support. Here is off-topic.
jp flag

The setting for Unattended-Upgrade::Allowed-Origins affects what repositories are used by unattended-upgrade. These are defined by default in /etc/apt/apt.conf.d/50unattended-upgrades.

You could add a separate configuration file (e.g. /etc/apt/apt.conf.d/90custom) with the content

#clear Unattended-Upgrade::Allowed-Origins;
Unattended-Upgrade::Allowed-Origins {

These entries match all ESM repo formats for all distros that I have worked with, but you can tailor for your needs.

I like to use a separate configuration file to avoid conflicts with system packages that update the default configuration file.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.