How to Ignore Certain Packages to Upgrade in Archlinux

!
Warning: This post is over 365 days old. The information may be out of date.

Background

sometimes when we want to update a package, there are things we want to ignore to update. for example, if there is a lack of quota I will make one large package to be ignored, one of which is libreoffice, this package one of the big packages and not too important to upgrade in my opinion, that I have

Attention be careful when choosing packages to ignore for upgrading make sure there are no dependencies to depend on Mainly the Linux kernel


Solution

quoted from page archwiki quoted from page archwiki there are 2 ways for archlinux users to ignore packages to be upgraded.


first step

the first way to ignore the package to be upgraded is to edit the file /etc/pacman.conf uncomment the line ignore pkg then enter the name of the package to be ignored or ignore. for example, I enter firefox and libreoffice:

#IgnorePkg = firefox libreoffice-still

we can also ignore the package group here by uncommenting the line

#IgnoreGroup=gnome

the second way

The second way to ignore the package to be upgraded is to add the string --ignore=firefox when upgrading the example package:

sudo pacman -Syu --ignore=firefox

whereas, for the package group, here’s an example:

sudo pacman -Syu --ignoregroup=gnome

Reference


Related Posts