You are not logged in.

#1 2018-06-03 23:45:43

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 49

[SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

I'm having trouble figuring out why my recent change to /etc/pacman.conf isn't having any effect...

I'm running the lts kernel (4.14.44-1-lts) and after upgrading to the linux-lts-4.14.47-1 kernel my plasma desktop no longer worked. So I switched back to the 4.14.44-1-lts kernel and everything works again.

In order to keep my kernel from upgrading I uncommented and appended the following to the 'IgnorePkg' line in '/etc/pacman.conf':

IgnorePkg   = linux,linux-headers,linux-lts,linux-lts-headers

For some reason, this does not work. For example, after running '...# pacman -Syu' I get the output:

[cory@thinkpad:~]$ sudo pacman -Syu
[sudo] password for cory:
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (6) libiec61883-1.2.0-5  libmm-glib-1.8.0-1  linux-lts-4.14.47-1  linux-lts-headers-4.14.47-1
             modemmanager-1.8.0-1  vid.stab-1.1-2

Total Download Size:     1.38 MiB
Total Installed Size:  155.62 MiB
Net Upgrade Size:        0.04 MiB

:: Proceed with installation? [Y/n] n

But if I run

...# pacman -Syu --ignore linux,linux-headers,linux-lts,linux-lts-headers

pacman works as expected and ignores the kernel and linux header pkgs.

I currently have the previous command under an alias and have just been running that to upgrade the system. Is there something obvious I am missing here? It almost seems like pacman isn't reading the pacman.conf file but that's not right because its obviously picking up the 'archlinuxfr' repo from the file.

Here's my pacman.conf file:

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = linux,linux-headers,linux-lts,linux-lts-headers
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

Any insight into this would be greatly appriciated!

TL;DR
[SOLUTION]
Use spaces instead of commas as the delimeter in /etc/pacman.conf

Last edited by bashM0nk3y (2018-06-08 21:10:02)

Offline

#2 2018-06-03 23:48:16

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

Arch Wiki wrote:

For multiple packages use a space-separated list, or use additional IgnorePkg lines. Also, glob patterns can be used. If you want to skip packages just once, you can also use the --ignore option on the command-line - this time with a comma-separated list.

https://wiki.archlinux.org/index.php/Pa … g_upgraded

Last edited by 2ManyDogs (2018-06-03 23:49:34)

Offline

#3 2018-06-03 23:48:30

progandy
Member
Registered: 2012-05-17
Posts: 5,312

Re: [SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

The separator in pacman.conf should be a space, not a comma.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2018-06-03 23:48:53

edacval
Member
From: .LT
Registered: 2008-10-23
Posts: 98

Re: [SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

Separate pkgnames by space, not comma

Edit: Too late ..

Last edited by edacval (2018-06-03 23:49:34)

Offline

#5 2018-06-03 23:49:34

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 49

Re: [SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

Rookie mistake huh?

Thanks all!

Can I mark this as [SOLVED] or is that a moderator thing?

Last edited by bashM0nk3y (2018-06-03 23:50:37)

Offline

#6 2018-06-03 23:50:21

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

#7 2018-06-03 23:52:07

bashM0nk3y
Member
From: the big she-bang
Registered: 2018-05-26
Posts: 49

Re: [SOLVED]/etc/pacman.conf "IgnorePkg = ..." doesn't work

Thanks again for the fast replies!
Just to confirm, the comma delimeters were most def the prob.

Last edited by bashM0nk3y (2018-06-03 23:54:58)

Offline

Board footer

Powered by FluxBB