Archlinux Ignore a package

If like me you need to tell the system to not upgrade a package in any case. Here is what to do, edit the /etc/pacman.conf and add your package to the ignore package list.

sudo nano /etc/pacman.conf

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = intel-compute-runtime
#IgnoreGroup =

For multiple packages use space as a separator and multiple lines if needed.

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = intel-compute-runtime linux-lts
IgnorePkg   = libpng
#IgnoreGroup =

It is also possible to ignore a group of packages using IgnoreGroup.

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
# IgnorePkg   = 
IgnoreGroup = gnome libreoffice-still

MG1

Archlinux

119 Words

2024-11-24 12:09 +0100

.