Canonical introduced snap packages back in 2016 for Ubuntu Linux operating systems and related variants. Snaps have now replaced apt packages in the 20.04 LTS version of Ubuntu.
The community showed a mixed response to such a great change, but we really appreciate the nature of snap packages. We are really fond of them due to their nature of the installation, removal, and simple updates.
However, it also brought an issue. Snaps are updated automatically.
Although there are ways to control it, the community yet has to learn that. We have decided to simplify the way for you to keep all snap packages in your control.
Let’s begin step by step to take back the control!
Change Snap Packages Update Frequency
I believe you still don’t know how to manually update the snap packages. Here is the single shot:
This tiny command does all the job for you. It updates all the snap packages in no time.
Now I am going to tell you the secret you can simply update your snap packages weekly or daily in addition to updating them on demand.
In case, you do not use your computer at night simply input the following command with the desired day and it will schedule your snap packages on that day at 00:00 midnight.
$ sudo snap set system refresh.timer=sun
The above command simply instructs the system to set the next update on Sunday at 00:00 midnight every week. Input your password and you are good to go.
If you want to change the time simply do as below:
$ sudo snap set system refresh.timer=sun,19:00-22:00
It’ll install the updates on Sunday between 7 PM to 10 PM.
How simple it can be. Yes, it is. If you have any problems, you can leave a comment below.
Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.