How to pin/prevent groups of packages from upgrading [closed]

asked 2018-11-02 10:47:14 -0600

sencho gravatar image

updated 2018-11-02 11:17:40 -0600

Hello everyone,

I have experimented with a few distros, making the full-time switch to Gnu/Linux desktop and have settled on Fedora/KDE.

The first time I had Fedora/KDE installed, I noticed after upgrading to the latest software, Kmail, Kontact, and Konqueror in particular would always crash due to something with nouveau.

Reporting the bug aside, can I easily prevent these apps from updating while letting the rest of the system upgrade? I see that dnf has an "excludepkgs" option in dnf.conf, but other related package could be pulled in still like kf5-kmailtransport-akonadi. And then I worried that if I block this kmail specific package, then maybe it could cause issues with other akonadi functionality for example.

Said another way, if I add everything with the kmail in the package name to the dnf excludepkgs option, should it work? I guess it depends on the packages...

I am planning on improving my "package awareness" VS blindly trusting the package manager, but it takes time...

So I'm wondering if someone just knows, "yes it's easy just do x" or "no its a pain/hassle, either upgrade all or don't upgrade at all."

Thanks very much!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by hhlp
close date 2018-11-03 13:44:48.611637

Comments

1

Use wildcards exclude= kf5* or some such. Yes it is a pain in any os

Panther gravatar imagePanther ( 2018-11-02 11:38:07 -0600 )edit

dnf.conf: exludepkgs=...

florian gravatar imageflorian ( 2018-11-02 22:27:33 -0600 )edit
1
1

I mention exludepkgs option. I was seeking advice for not causing breakage due to dependencies, like other kde services depending akonadi, etc. Sorry if I was too wordy... I was probably over-thinking it

sencho gravatar imagesencho ( 2018-11-03 09:02:51 -0600 )edit

Nice duplicate, with dnf you can put the package list on one line

Panther gravatar imagePanther ( 2018-11-03 09:56:00 -0600 )edit