You are not logged in.

#1 2019-08-05 16:28:55

lebutter
Member
Registered: 2019-07-21
Posts: 16

How to not get a new kernel automatically installed during pacman upgr

Hi

i have installed a linux-lts kernel from AUR, and i manually adited the .config with "make menuconfig" before compiling it (ie. i edited PKGBUILD)

I am wondering what will happen the next time i automatically upgrade my system and a new version of linux-lts is available ?

Whats the best approach if i do NOT want it to be installed with its default config and want to manually do it  as i did for the install ?

Offline

#2 2019-08-05 16:32:19

loqs
Member
Registered: 2014-03-06
Posts: 19,060

Re: How to not get a new kernel automatically installed during pacman upgr

Offline

#3 2019-08-05 17:15:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: How to not get a new kernel automatically installed during pacman upgr

lebutter wrote:

i have installed a linux-lts kernel from AUR

There is no "linux-lts" in the AUR.  Do you mean you rebuilt the repo package with ABS, or did you install some other AUR package (e.g., linux-lts-ck or linux-lts-selinux)?  If the latter, then there's nothing to worry about - pacman will never upgrade AUR packages.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2019-08-05 17:26:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to not get a new kernel automatically installed during pacman upgr

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-08-06 08:38:38

lebutter
Member
Registered: 2019-07-21
Posts: 16

Re: How to not get a new kernel automatically installed during pacman upgr

Trilby wrote:
lebutter wrote:

i have installed a linux-lts kernel from AUR

There is no "linux-lts" in the AUR.  Do you mean you rebuilt the repo package with ABS, or did you install some other AUR package (e.g., linux-lts-ck or linux-lts-selinux)?  If the latter, then there's nothing to worry about - pacman will never upgrade AUR packages.


I made a mistake, i installed through ABS (i'm coming from Gentoo so all the naming is new to me...), so at the end of the chain there is a "pacman -U ...".

In the wiki mentionned by loqs above, it discourages from blacklisting packages for upgrades, but i believe this is fairly common ?

Offline

#6 2019-08-06 09:04:00

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: How to not get a new kernel automatically installed during pacman upgr

Technically you can "freeze" a kernel (not a good idea thou) or go with LTS (slower pace)
Compare it with masking and adding to world file (if you want to keep older kernels and occasionally do a "emerge -av --depclean" in Gentoo.


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#7 2019-08-06 12:11:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: How to not get a new kernel automatically installed during pacman upgr

lebutter wrote:

so at the end of the chain there is a "pacman -U ...".

That's at the end of either process.  The relevant difference is whether the package you installed shares a name with a package in the main repos.  If it does, then pacman will try to upgrade it, if it doesn't then pacman will not.

The best solution would be simply to change the name of your package in the PKGBUILD, for example:

pkgname=linux-lts-lebutter

Then you can rebuild it whenever you'd like, but it will not be replaced by anything from the repos during a normal upgrade.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB