banner



How To Force Update Packages In Ubuntu

Brief: Quick tutorial to show you how to prevent certain packages from being updated in Ubuntu and Debian based Linux distributions.

When you update your Ubuntu system, all the applications, packages are updated at once.

This is of course very convenient every bit y'all don't take to worry about updating the installed packages i by ane.

But there may be situations where you want to retain the version of a particular installed application.

In this tutorial, I'll prove you both GUI and last methods to disable certain package updates in Ubuntu and other Ubuntu and Debian based systems.

Method one: Preclude parcel update using apt-marker control

Ubuntu's bundle director, apt has plenty of useful utilities for well-nigh every aspect of package management. 1 of the apt commands is apt-marking that you can use to blacklist or whitelist sure packages from the system updates.

To concord a package and thus prevent apt from making changes to it, you can use the apt-mark command with hold option.

The tab completion doesn't work with the apt-mark command. You need to type the verbal proper name of the package you are trying to update.

                sudo apt-marker hold package_name              

Brand sure that you replace the package-proper noun with the appropriate package you're trying to target. Hither's an example:

Prevent Package Update in Ubuntu

To list all the packages that are held yous tin apply:

                apt-mark showhold              
show all hold packages in Ubuntu using apt-mark

To remove concur on a package:

                sudo apt-mark unhold package_name              
Resume Update On Packages Ubuntu

Now that y'all are aware of the commands, let's run into how to prevent bundle update graphically.

Method two: Prevent packet update using Synaptic Package Director

Prevent Package From Being Updated in Ubuntu

Once upon a fourth dimension, Synaptic used to ship by default in Ubuntu and it was also the default GUI package manager in Ubuntu until 11.ten. You lot have a better graphical GNOME Software Center now but yous could still use Synaptic.

Use the following control to install Synaptic Package Manager in Ubuntu/Debian:

                sudo apt install synaptic              

Next, the follow the steps beneath:

  • Launch Synaptic Packet Manager
  • Search for your desired parcel in the search bar
  • Select the desired parcel
  • In the Packet menu, choose Lock Version
  • Relieve it
Prevent Package Update Screenshot

To undo this, just exercise the same and this time select Unlock Version.

Did it assist you?

That'due south all yous demand to practice. See, how easy it was to lock a package from the updates?

I hope this quick tutorial was helpful to you lot. I welcome your questions and suggestions.


Source: https://itsfoss.com/prevent-package-update-ubuntu/

Posted by: joneshishismand.blogspot.com

0 Response to "How To Force Update Packages In Ubuntu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel