Hi,
I have just installed Debian and love it - it's really peppy and much better than Ubuntu.
I plan to install it on my mum's computer, but would like updates to run in the background:
apt-get update
apt-get full-upgrade
How would I do this?
Thank you
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Auto update full-upgrade
Re: Auto update full-upgrade
I don't know how you would do it but, if I had the question that you posed, I would use a search engine and see if I could find the topic with the keywords, Debian, unattended, upgrades.acukcroy wrote: I plan to install it on my mum's computer, but would like updates to run in the background:
apt-get update
apt-get full-upgrade
How would I do this?
Sure enough, there is a Debian Wiki Page for that topic. https://wiki.debian.org/UnattendedUpgrades So, I would go to that page and see if I understood it and if not then I might pose a more specific question to the Forum regarding what I didn't understand.
Ubuntu is derived from Debian but is not exactly the same, expect some differences from what you may already know. Our Forum is also different, as you will see if you stay around.
Since you are new here and don't yet know what to expect, it would probably also be a good idea to read this. http://forums.debian.net/viewtopic.php?f=30&t=47078 Maybe even this. http://forums.debian.net/viewtopic.php?f=30&t=58557
The information on the following site is fairly long to read but I think it can be valuable to read and understand. http://www.catb.org/esr/faqs/smart-questions.html
Re: Auto update full-upgrade
That can only be considered "automatic" if you have your butler do it.peer wrote:in the terminal:
sudo apt update && sudo apt full-upgrade
Have you actually read the OP?
If you can’t explain it simply, you don’t understand it well enough.
Albert Einstein
Albert Einstein
- Ardouos
- Posts: 1077
- Joined: 2013-11-03 00:30
- Location: Elicoor II
- Has thanked: 1 time
- Been thanked: 4 times
Re: Auto update full-upgrade
Ensure your sources are pointing towards the systems codename instead of stable when using unattended upgrades. Otherwise your mother nice get a surprise in 2 years.
There is only one Debian | Do not break Debian | Stability and Debian | Backports
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀
Re: Auto update full-upgrade
Thanks - I got a bit confused with unattended upgrades, so opted for this in /etc/cron.weekly
It does everything I need.
Admit, it's probably overkill, but for a newbie like me it seems to do the trick nicely in the background.
It outputs to a .txt file as listed, so I can see what went on in the update process.
I also added in a fstrim -a for my SSD.
It does everything I need.
Admit, it's probably overkill, but for a newbie like me it seems to do the trick nicely in the background.
It outputs to a .txt file as listed, so I can see what went on in the update process.
I also added in a fstrim -a for my SSD.
Code: Select all
#!/bin/bash
sleep 30s
dt=$(date '+%d/%m/%Y %H:%M:%S');
echo "Last ANTupdate run = " "$dt" > "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
echo "=====================================================" >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
echo " " >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
sudo apt-get update >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
sudo apt-get full-upgrade -y >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
sudo apt-get dist-upgrade -y >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
sudo apt-get autoremove -y >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
sudo apt-get clean y >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
sudo apt-get autoclean y >> "/home/adam/ZZ_Last_Anacron_Updates/Anacron_Last_APT_Update.txt"
fstrim -a
Last edited by acukcroy on 2017-10-22 07:28, edited 2 times in total.
Re: Auto update full-upgrade
My sources do currently say stable instead of stretch, so thanks for the heads up.Ensure your sources are pointing towards the systems codename instead of stable when using unattended upgrades. Otherwise your mother nice get a surprise in 2 years.
What will happen in 2 years - when the new release comes out?
Will the system get wiped with a full-upgrade in apt?
Re: Auto update full-upgrade
Yesacukcroy wrote: What will happen in 2 years - when the new release comes out?
Will the system get wiped with a full-upgrade in apt?