Apt preferences ignored by webmin in Software Package Updates

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 2.621

I have added a repository that pulls many things, but I only want certain packages from it.

In Webmin I see 38 packages (that I don’t want) from this repository. I’m looking for a way to stop Webmin from showing me unwanted packages from this repository.

I have implemented a /etc/apt/preferences.d/(repository) file that rejects some of the packages with a wildcard.

Package: php8.1*
Pin: release o=(repository)
Pin-Priority: -1

This blocks 15 of the packages, and when I run apt update at the CLI, I get 23 packages to be upgraded, as I expect.

However Webmin still shows me 38 updates. Is there a way to tell Webmin to stop showing me the unwanted packages? I thought it would follow the apt preferences, but apparently not.

-Michele

Have you told Webmin to recheck available packages?

1 Like

I logged in fresh and went to System → Software Package Updates

and it still says 38 packages. Is there something else I should be doing?

Webmin → System → Software Package Updates

Try that and see if available packages changes for you

1 Like

Hey, that was it. Never even noticed that button…

Thanks so much!

-Michele

Welcome and glad it all worked out for you

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.