You are not logged in.
In pacman.conf I added some packages to the IgnorePkg option
IgnorePkg = linux linux-headers linux-lts linux-lts-headers virtualbox-host-modules-arch
This reduces the need for me to reboot the system when I update, but occasionally I want to update them as well, in which case I comment this line out
Is there a way to override this option in the command line so that I don't have to comment it out and uncomment it again?
Calling pacman with --ignore '' (empty quotes) does not accomplish this
Last edited by murdonk (2022-12-01 15:15:15)
Offline
You can explicitly list those packages and they will be updated:
pacman -S linux ...
But given the list you have, that'd be a lot of typing. You could also just make a second pacman.conf, for example, call it pacman.conf.full which is a copy of pacman.conf just withouth the IgnorePkg line, then:
pacman --config /etc/pacman.conf.full -Syu
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Rather than copying the pacman.conf, you could also Include the pacman.conf.full in a pacman.conf that otherwise only has the IgnorePkg, so you don't need to sync the configs.
Offline
(ignore)
Include the pacman.conf.full in a pacman.conf
I believe seth meant that in opposite direction.
Last edited by mpan (2022-11-30 23:03:21)
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
You can explicitly list those packages and they will be updated:
pacman -S linux ...
But given the list you have, that'd be a lot of typing. You could also just make a second pacman.conf, for example, call it pacman.conf.full which is a copy of pacman.conf just withouth the IgnorePkg line, then:
pacman --config /etc/pacman.conf.full -Syu
A little cumbersome, but it works, thanks!
Rather than copying the pacman.conf, you could also Include the pacman.conf.full in a pacman.conf that otherwise only has the IgnorePkg, so you don't need to sync the configs.
That won't work because IgnorePkg gets concatenated when you set it multiple times in the config file.
Offline
Note that adding the packages to IgnorePkg will make e.g. checkupdates (of community/pacman-contrib) not report them. So you will miss the notification.
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
I didn't suggest to set it multiple times (though that would allow for a stacked IgnorePkg list)
Though I've to admit that I'm unsure whether you can have Include's "outside" groups this way.
pacman.conf.full
#
# 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/
…
[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
[multilib]
Include = /etc/pacman.d/mirrorlist
pacman.conf
[options]
IgnorePkg = linux linux-headers linux-lts linux-lts-headers virtualbox-host-modules-arch
Include = /etc/pacman.conf.full
Offline
Note that adding the packages to IgnorePkg will make e.g. checkupdates (of community/pacman-contrib) not report them. So you will miss the notification.
I'm not sure which notification you mean. pacman does tell you if there are updates for packages in IgnorePkg when you do -Syu, it just skips them.
Offline
I didn't suggest to set it multiple times (though that would allow for a stacked IgnorePkg list)
Though I've to admit that I'm unsure whether you can have Include's "outside" groups this way.pacman.conf.full
# # 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/ … [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 [multilib] Include = /etc/pacman.d/mirrorlist
pacman.conf
[options] IgnorePkg = linux linux-headers linux-lts linux-lts-headers virtualbox-host-modules-arch Include = /etc/pacman.conf.full
Sorry, I'm having a hard time following the logic here. Isn't this setup equivalent to just having the one pacman.conf?
Offline
pacman.conf has your ignore list and includes pacman.conf.full
pacman.conf.full has the rest (but not the ignore list)
So regular pacman calls will use the pacman.conf w/ the ignore list, and "pacman --config /etc/pacman.conf.full" will skip the ignore list (but have your regular config)
Offline
pacman.conf has your ignore list and includes pacman.conf.full
pacman.conf.full has the rest (but not the ignore list)So regular pacman calls will use the pacman.conf w/ the ignore list, and "pacman --config /etc/pacman.conf.full" will skip the ignore list (but have your regular config)
Oh, I see. That's clever haha, guess it's why it went over my head .
Well, it works like a charm! tysm seth
Offline
pacman does tell you if there are updates for packages in IgnorePkg when you do -Syu, it just skips them.
No, pacman has no option to check if there are updates available. Not without performing a partial update and also requiring root privileges. That’s why checkupdates has been created.
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
murdonk wrote:pacman does tell you if there are updates for packages in IgnorePkg when you do -Syu, it just skips them.
No, pacman has no option to check if there are updates available. Not without performing a partial update and also requiring root privileges. That’s why checkupdates has been created.
I think you did not read sufficiently carefully what was said.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
mpan wrote:murdonk wrote:pacman does tell you if there are updates for packages in IgnorePkg when you do -Syu, it just skips them.
No, pacman has no option to check if there are updates available. Not without performing a partial update and also requiring root privileges. That’s why checkupdates has been created.
I think you did not read sufficiently carefully what was said.
The inference is that the -Syu is terminated once the list is printed; thereby creating the conditions for a partial update.
Offline
cfr wrote:mpan wrote:No, pacman has no option to check if there are updates available. Not without performing a partial update and also requiring root privileges. That’s why checkupdates has been created.
I think you did not read sufficiently carefully what was said.
The inference is that the -Syu is terminated once the list is printed; thereby creating the conditions for a partial update.
But that is not what the OP is doing. That is, technically, it is a partial update because the kernel and headers aren't being updated, but that doesn't require terminating pacman -Syu.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Yep. I was just commenting on the discussion about checkupdates versus -Syu.
Offline
mpan's point was that packages in the ignore list will be, well … ignored by checkupdates; so the OP isn't only ignoring them on updates, but when using tools that tell you that you're a lazy ass bitch w/ 612 pending updates, it will not report those ignored packages either.
The OP however is either not even aware of checkupdates, or not using it or doesn't care to not get reports about movements in the ignored packages - at least not this way.
That's not really a problem, but just something to be aware of iff one uses checkupdates etc. AND actually wanted it to be alerted about updates in ignored packages.
@murdonk
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
Can a user create a "custom" group defining inside unwnated packages and then perform this?:
# pacman -Syu --ignoregroup <UNWANTED>
[and maybe alias the above]
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
You could also alias the regular --ignore command and export the undesired packages into a shell variable.
The group affiliation is defined in the PKGBUILD and while you can probably edit the local package database, that would be lost w/ an update and probably also not be a good idea.
The benefit of the IgnorePkg entry is the reversed default - those packages become opt-in, rather than your proposed opt-out (regardless of how you approach that)
Offline
That is, technically, it is a partial update because the kernel and headers aren't being updated, but that doesn't require terminating pacman -Syu.
Seth has shortly explained my point and the purpose of what I wrote.
As for being pedantic: yes, if we ignore obvious details provided by the context, technically those are both in the set called “partial upgrades”. But the context provides a particular qualification to “partial upgrades”. Intentional ignoring of selected packages is not the same as a persistent mismatch between sync and local databases. Even more, OP wants to hold updates to core/linux and friends. This package gets some special treatment when it comes to talking about partial upgrades.
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
cfr wrote:That is, technically, it is a partial update because the kernel and headers aren't being updated, but that doesn't require terminating pacman -Syu.
Seth has shortly explained my point and the purpose of what I wrote.
As for being pedantic: yes, if we ignore obvious details provided by the context, technically those are both in the set called “partial upgrades”. But the context provides a particular qualification to “partial upgrades”. Intentional ignoring of selected packages is not the same as a persistent mismatch between sync and local databases. Even more, OP wants to hold updates to core/linux and friends. This package gets some special treatment when it comes to talking about partial upgrades.
Which was my point .
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
FWIW, murdonk, if you are considering an alias for running different versions of pacman commands, don't bother with different configs or flags, just create an alias for your ignored packages and leave pacman.conf alone:
alias fullupdate='pacman -Syu $(sed -n "s/IgnorePkg[^=]*=//p" /etc/pacman.conf)'
Last edited by Trilby (2022-12-01 21:00:49)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
"^\s*"
There could be multiple IgnorePkg lines and non-tailing ones be commented
(Though arguebly that could be an advantage, since one could use a dummy to limit the selection to one IgnorePkg instance)
Offline