/srv/irclogs.ubuntu.com/2020/02/13/#ubuntu-server.txt

lordievaderGood morning07:14
apurkrthello - how to upgrade kernel (semi)automatically, when I do not want to use "apt-get dist-upgrade"?14:18
apurkrtsimple "apt-get upgrade" won't touch kernel14:18
=== Wryhder is now known as Lucas_Gray
rbasakapurkrt: why don't you want to use apt-get dist-upgrade?14:27
apurkrtscared it could remove some packages... found some superficial info that "upgrade" is safer14:30
apurkrtrbasak: ^^14:31
sdezielapurkrt: "apt-get dist-upgrade -V" will show you a nice overview of what it would like to do and will let you accept or abort14:32
sdezielI find "-V" to be easier to visualize14:32
rbasakapurkrt: so there are effectively three settings here: 1) no new package additions or removals; 2) new package additions but no removals; 3) allow package additions _and_ removals14:33
rbasakapt-get has a simple CLI for 1 and 3 (upgrade and dist-upgrade). Achieving 2 via apt-get requires setting apt_preferences manually AFAIK14:33
apurkrtsdeziel: thanks!14:34
apurkrtrbasak: ok listening14:34
rbasakapurkrt: "apt upgrade" will do 2, but it isn't intended for automated use yet (unstable CLI).14:34
rbasakSo if you care and really want 2, then you need to write your own apt_preferences file I think14:34
rbasakSee apt_preferences(5).14:34
rbasakHowever, I wouldn't worry about the difference between 2 and 3 if you're using a stable Ubuntu release and don't have third party repositories enabled that will mess with you.14:35
* apurkrt looking into it now14:35
apurkrtrbasak: ok14:35
apurkrtrbasak: thank you very much!14:35
rbasakI might have missed some easier way to achieve 2 with apt-get.14:36
rbasakYou're welcome!14:36
apurkrtafter logging in to ubuntu, I see "X packages can be updated.". How this works? This imo requires running "apt-get update" regularly - but grepping for in in /etc I do not see it set in /etc/cron.{hourly,daily,weekly}15:20
pragmaticenigmaapurkrt: it's not using apt-get to perform the check15:21
rbasakapurkrt: look up update-motd.d15:21
pragmaticenigmarbasak: That's just the notification... not the cause15:22
rbasakapurkrt: /etc/update-motd.d/90-updates-available15:22
weedmicapurkrt: i do not understand what you want, do you want the process to list, then upgrade the items, or to set when they are checked for?15:22
oerheksi htink it is part of MOTD ?  /etc/update-motd.d/90-updates-available15:22
pragmaticenigmano no no no no15:22
pragmaticenigmathat's not what they're looking for guys15:22
oerhekshttps://linuxconfig.org/how-to-change-welcome-message-motd-on-ubuntu-18-04-server15:22
rbasakFrom the update-notifier-common package15:22
apurkrtI'm basically just interested how it works15:22
rbasak/etc/cron.daily/update-notifier-common15:22
pragmaticenigmarbasak: /etc/apt/apt.conf.d/10periodic15:22
pragmaticenigmahttps://www.garron.me/en/linux/turn-off-stop-ubuntu-automatic-update.html15:23
rbasakpragmaticenigma: I know how it works. I'm trying to provide information about the trail to help with the big picture.15:23
pragmaticenigmaI have no idea what you mean by that rbasak15:24
pragmaticenigmasorry... meant tag the requestor15:24
pragmaticenigmaapurkrt: in file /etc/apt/apt.conf.d/10periodic there is a setting "APT::Periodic::Update-Package-Lists" ... switch its value to zero15:25
pragmaticenigmaapurkrt: https://www.garron.me/en/linux/turn-off-stop-ubuntu-automatic-update.html15:25
rbasakHe didn't ask how to turn it off.15:25
pragmaticenigmarbasak: Perhaps not, but he was looking for where the setting was15:26
rbasakHe asked how it works, not where the setting was.15:26
rbasakBut anyway, I'm not going to argue.15:27
rbasakI'll leave it to you to help as needed, thanks.15:27
pragmaticenigmathe config file is how it works... it's part of apt configuration which triggers all the rest of the behaviors they were discussing15:28
apurkrtthank you all!15:31
ElzingtonI'm curious how this works too. How does the system know that there are "X packages can be updated" when you first log into the system prior to running the command "apt-get update"? Does it run when you first log in?15:31
oerheksElzington, see the url, it contains a script that looks for new update packages15:31
Elzingtonthanks15:32
oerhekssome complain about the 50-motd-news thingy ..15:32
oerheksphone home, et!15:32
pragmaticenigmaElzington: Apt is setup to periodically check for updates. There is a script that is located as part of login motd that will check if apt has left a flag indicating there are updateable packages15:33
Elzingtonpragmaticenigma: thanks! that is interesting to know15:36
Elzingtonoerheks: Yeah, I can see why there would be concern with it automatically on all the time15:36
pragmaticenigmaI disable them only because they slow down the login process15:37
ElzingtonThat's a good point! I'll have to consider this now15:38
oerheks:-)15:38
pragmaticenigmathe *motd-news does at least cache its response locally... so it doesn't do it every login15:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!