remove opensuse repos
Hello, On a Leap 15.5 installation via autoyast there are always the opensuse repos configured. How can I get rid of them? Simply delete them in a post script? Or is there a xml switch for the repos? Regards Daniel -- Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 https://www.marco.de Email ds@marco.de Geschäftsführer Martin Reuter, Torsten Lukas HRB 171775 Amtsgericht München
On Oct 11, 2023, at 4:48 AM, Daniel Spannbauer <ds@marco.de> wrote: On a Leap 15.5 installation via autoyast there are always the opensuse repos configured.
How can I get rid of them? Simply delete them in a post script? Or is there a xml switch for the repos?
AFAIK the best option is disabling them in a post- or chroot-script. (If you remove them, they’ll be added back in future upgrades.). This is what I have: ==== <chroot-scripts config:type="list"> <script> <filename>disable-opensuse-org-repos.sh</filename> <source><![CDATA[#!/bin/sh # For openSUSE Leap, disable the sle-update and backports-update repos on # download.opensuse.org; these repos on our internal mirror ([redacted]) are # added under different names. Note that these two repo files are now part of # the openSUSE-release package, so if we deleted them, they would be recreated # by future updates. # The base product is Leap.prod for 15.3 and newer, which have these repos. It # was previously openSUSE.prod, and of course SLES is SLES.prod. if [ $(readlink /mnt/etc/products.d/baseproduct) = "Leap.prod" ]; then # The zypper lock will be active during installation, so modify the repo # files directly instead of using 'zypper mr'. perl -pi -e 's/^enabled=1/enabled=0/' /mnt/etc/zypp/repos.d/repo-{backports,sle}-update.repo fi ]]></source> </script> </chroot-scripts> ==== -Andrew
participants (2)
-
Daniel Spannbauer
-
Daugherity, Andrew W