Sample Header Ad - 728x90

Zypper: How to change the type of GPG check used by a repository?

0 votes
1 answer
36 views
I added the desktop-applications and development-tools module with zypper manually after installing; by changing my mind as I found I needed these module to install something I needed from Development-Tools. I used this to replicate the details I found with zypper lr:
MNTPATH=/mnt/media1
REPO=Module-Desktop-Applications
VERSION=$(cat /etc/os-release | grep VERSION_ID | cut -d '=' -f2 | tr -d '"')
ALIAS=${REPO}_${VERSION}-0
OFFICIAL_NAME=sle-${REPO,,}
zypper addrepo $MNTPATH/$REPO $ALIAS
zypper modifyrepo --name $OFFICIAL_NAME $ALIAS
But my manually added module still isn't quite the same as the existing ones. See the output:
# | Alias                              | Name                            | Enabled | GPG Check | Refresh
--+------------------------------------+---------------------------------+---------+-----------+--------
1 | Basesystem-Module_15.7-0           | sle-module-basesystem           | Yes     | (r ) Yes  | No
2 | Module-Desktop-Applications_15.7-0 | sle-module-desktop-applications | Yes     | ( p) Yes  | No
(SNIP)
How do I change the type of GPG checks from r to p or vice versa?
zypper modifyrepo 
I'm not sure what to use there. The manpage doesn't really explain all too well about doing what appears to be metadata checks but not package checks, which appears to be the default if I'm interpreting this output correctly.
Asked by aphid (209 rep)
Jul 8, 2025, 06:58 AM
Last activity: Jul 8, 2025, 08:26 AM