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?
From Ubuntu 20.04 They added metered connection option.
Wi-Fi setting click on the
⚙ Gear Icon next to
your wifi SSID. At the bottom there is a
Metered Connection checkbox.
nmcli connection modify YOUR_WIFI_SSID connection.metered yes
Show current status:
nmcli -f connection.metered connection show YOUR_WIFI_SSID
2But there's a bug that can make gnome-software think your connection is metered even when you've set it as unmetered. Aug 25, 2020 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.
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 end
Show current metered status
nmcli -f connection.metered connection show $CONNECTION
$CONNECTIONis the string returned by the previous command.
Change metered status
The valid statuses are
unknownis the default, which will do the guessing based on things like the DHCP option
Now disable the metered connection:
nmcli connection modify $CONNECTION connection.metered no
$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