How to Disable Package Updates in Ubuntu, Debian and Mint

Keeping your operating system and software packages up to date is crucial for security and performance reasons. However, sometimes you may want to disable package updates on your Ubuntu, Debian, or Linux Mint system for various reasons such as stability concerns, compatibility issues, or simply personal preference. In this article, we will guide you on how to disable package updates on these popular Linux distributions.

  1. Ubuntu:
    To disable package updates on Ubuntu, you will need to modify the configuration file of the APT package manager. Here’s how you can do it:

Open Terminal by pressing Ctrl + Alt + T or searching for it in the Applications menu.
Run the following command to open the configuration file in a text editor:
sudo nano /etc/apt/apt.conf.d/10periodic

Add the following lines at the end of the file to disable automatic package updates:
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

Save the file and exit the text editor.
Now, package updates will no longer be automatically downloaded and installed on your Ubuntu system.

  1. Debian:
    Disabling package updates in Debian involves a similar process to Ubuntu. Follow these steps to disable automatic updates on Debian:

Open Terminal and run the following command to open the configuration file:
sudo nano /etc/apt/apt.conf.d/10periodic

Add the following lines to the end of the file to disable automatic updates:
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

Save the file and exit the text editor.
Package updates will now be disabled on your Debian system.

  1. Linux Mint:
    Linux Mint is based on Ubuntu, so the steps to disable package updates are very similar. Here’s how you can do it on Linux Mint:

Open Terminal and run the following command to open the configuration file:
sudo nano /etc/apt/apt.conf.d/10periodic

Add the following lines to the end of the file to disable automatic updates:
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

Save the file and exit the text editor.
Package updates will be disabled on your Linux Mint system as well.

It’s important to note that by disabling package updates, you may miss out on important security patches and bug fixes. It’s recommended to only disable updates temporarily and re-enable them once your concerns are addressed. If you want to manually update packages, you can do so by running the sudo apt-get update and sudo apt-get upgrade commands in Terminal.

In conclusion, disabling package updates on Ubuntu, Debian, or Linux Mint is a straightforward process that involves modifying the APT package manager configuration file. Just follow the steps outlined above, and you’ll be able to disable automatic updates on your Linux system.

Tags: 11421142114211421142