I'm running on Ubuntu 15.10(KDE). I have enabled automatic updates on many applications.I'm now connected to Wifi Hotspot from my phone so don't want Ubuntu to auto update apps and save my bandwidth to reduce usage as much as possible.In windows there is an option to set a Wifi as metered connection and windows wouldn't auto update the applications similarly how to do it in Ubuntu?
3 Answers
From Ubuntu 20.04 They added metered connection option.
GUI:
Open Wi-Fi setting click on the ⚙ Gear Icon next to your wifi SSID. At the bottom there is a Metered Connection checkbox.
Terminal:
Turn on:
nmcli connection modify YOUR_WIFI_SSID connection.metered yes
Show current status:
nmcli -f connection.metered connection show YOUR_WIFI_SSID
- 428
-
2But there's a bug that can make gnome-software think your connection is metered even when you've set it as unmetered. – Teemu Leisti Aug 25 '20 at 14:51
This feature is not implemented yet. It is drafted in the wiki, to not check for updates when a connection is detected as a mobile broadband connection.
For now, you should disable auto-updates or check for updates, if you use your mobile connection too often, to save bandwitdh, then re-enable it when you connect to wifi.
- 854
Command-line Interface
Get the device's current connection
nmcli -t -f GENERAL.CONNECTION --mode tabular device show $DEVICE | head -n1-tis required as there is a space appended at the endShow current metered status
nmcli -f connection.metered connection show $CONNECTIONWhere
$CONNECTIONis the string returned by the previous command.Change metered status
The valid statuses are
yes,no, andunknown.unknownis the default, which will do the guessing based on things like the DHCP option
eg:-ANDROID_METEREDNow disable the metered connection:
nmcli connection modify $CONNECTION connection.metered noChange
$CONNECTIONby the output of the first command.
Graphical User Interface
Go to settings (by searching settings in the application launcher and then opening the settings app)
There navigate to the Wi-Fi settings:
There go to the current connection settings
You will see a screen like this:
- As you can see my connection isn't metered, but your checkbox may be ticked, so, just untick it and click on
Apply.
- 7,440

