Blocking a package update with APT

From EN Ikoula wiki
Revision as of 16:35, 12 July 2021 by Ikbot (talk | contribs)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

de:Blockieren eines Paket-Updates mit APT nl:Een pakketupdate blokkeren met APT it:Bloccare l'aggiornamento di un pacchetto con APT pt:Bloqueio de uma actualização de pacote com APT es:Bloqueo de una actualización de paquetes con APT fr:Bloquer la mise à jour d'un paquet avec APT
This article has been created by an automatic translation software. You can view the article source here.

Introduction

This article is about setting up packet blocking with the apt manager.

Course

In our example, we will block the apache2 package from being updated:

# apt-mark hold apache2
apache2 passé en figé (« hold »).

We can then find the blocked packages using the command :

# apt-mark showhold
apache2

We can also see this with dpkg:

# dpkg -l | grep apache2
hi  apache2

The wish is h for hold instead of i for installed, the second i is for the state that is installed.


To unlock the package, simply issue the command :

# apt-mark unhold apache2
Annulation de l'état figé pour apache2.



Cet article vous a semblé utile ?

0



You are not allowed to post comments.