Search This Blog

Labels

adobe (1) android (3) apache (3) aviation (1) bash (2) chrome (2) composer (1) cookery (3) dev (2) dodanperks (1) extensions (1) facebook (2) firefox (1) git (2) grafana (1) guzzle (1) headaches (11) htaccess (1) html5 (2) jquery (2) lamp (1) life hacks (10) linux (28) mysqli (2) native (1) opera (2) php (10) railfanning (1) reactjs (3) reactnative (1) servers (11) sinhala (1) smartphones (2) snap (1) sound (1) tech (22) troubleshoots (4) ubuntu (29) unicode (4) virtualbox (1) wamp (2) web (11) windows (4) wordpress (3) youtube (2) කෑම (3)

Tuesday, 28 February 2023

Stop Snap updates on Ubuntu

You can "limit" downloads in several ways. You can limit downloading times. You can find everything related to Snaps updates on the documentation here.

To Hold Forever

snap refresh --hold=<time> <[optional]snap_name>   # time = forever, 24h, 45m, 30s works
To unhold it, 
snap refresh --unhold <[optional]snap_name>        # You can ignore snap_name and apply it to all snaps

Make updates happen only at a specific time

sudo snap set system refresh.timer=4:00-7:00,19:00-22:10 

And there are a whole lot of ways to stop, limit or hold Snap updates on the documentation.

Old fashioned way

Before snap refresh --hold=forever was a thing, you had to add 127.0.0.1 api.snapcraft.io to /etc/hosts

No comments:

Post a Comment