Home  >  Article  >  System Tutorial  >  How to disable software updates in Ubuntu system? Tips for not upgrading specified software

How to disable software updates in Ubuntu system? Tips for not upgrading specified software

王林
王林forward
2024-01-07 15:21:57929browse

When upgrading the Ubuntu system using apt-get, if you want to keep some software as the current version and not participate in the upgrade, how should you set it up? Let's take a look at how to use commands to achieve this. Please see the introduction below for details.

1. Tips on not upgrading specified software

1. Taking synergy as an example, you need to use sudo or root

Open the terminal and enter:

sudo echo synergy hold | sudo dpkg --set-selections

Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧

2. Query the status of software packages that are locked and not updated in the Ubuntu system (hold). The command is:

sudo dpkg --get-selections | grep hold Check whether the lock is successful

or use

sudo dpkg --get-selections | more Query the status of all software in the system

Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧

3. The locked (hold) software package is restored to the upgradeable state, command:

sudo echo synergy install | sudo dpkg --set-selections

Ubuntu系统怎么禁止软件更新? 不升级指定软件的技巧

2. Turn off automatic update detection

1. After starting Ubuntu, we click the settings button in the upper right corner of the screen, as shown in the picture.

2. In the drop-down menu, we need to select "System Settings", as shown in the picture.

3. After entering all settings, we find the system. Under the system, we find "Software and Updates".

4. After clicking to open, we can see the interface as shown in the figure. We click the "Update" option.

5. In the automatic check for updates, after we click, select "Never", as shown in the picture.

6. After that, because Ubuntu is a very secure system, we need to authorize it. After we enter the password here, click "Authorization".

7. After authorization, we can click "CloseClose" below.

The above is the detailed content of How to disable software updates in Ubuntu system? Tips for not upgrading specified software. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete