Add a webmin.repo file to the repo folder?

I want to add this custom repo file for webmin repository,

webmin.repo:

[Webmin]
name=Webmin Distribution Neutral
#baseurl=https://download.webmin.com/download/yum
mirrorlist=https://download.webmin.com/download/yum/mirrorlist
enabled=1
gpgkey=https://download.webmin.com/jcameron-key.asc
gpgcheck=1

where is the repo folder?

Thanks!..

@nasheayahu likely the trailing / in the baseurl…

[webmin]
name=webmin
enabled=1
autorefresh=1
baseurl=https://download.webmin.com/download/yum/
gpgcheck=1
1 Like

Thanks, I put this in the folder /etc/zypper/repos.d correct?

@nasheayahu I would use zypper to add so can import the gpg key…

zypper ar -f -g -n "Webmin Distribution Neutral" https://download.webmin.com/download/yum/ repo-webmin

zypper ref
1 Like

The repository definition shown by OP is absolutely correct. Zypper supports mirrorlist keyword and will retrieve the list of base URLs from it.

bor@10:~> cat /etc/zypp/repos.d/webmin.repo 
[Webmin]
name=Webmin Distribution Neutral
#baseurl=https://download.webmin.com/download/yum
mirrorlist=https://download.webmin.com/download/yum/mirrorlist
enabled=1
gpgkey=https://download.webmin.com/jcameron-key.asc
gpgcheck=1
bor@10:~> sudo zypper refresh Webmin
Warning: File 'repomd.xml' from repository 'Webmin Distribution Neutral' is unsigned.

    Note: Signing data enables the recipient to verify that no modifications
    occurred after the data were signed. Accepting data with no, wrong or
    unknown signature can lead to a corrupted system and in extreme cases even
    to a system compromise.

    Note: File 'repomd.xml' is the repositories master index file. It ensures
    the integrity of the whole repo.

    Warning: We can't verify that no one meddled with this file, so it might not
    be trustworthy anymore! You should not continue unless you know it's safe.

File 'repomd.xml' from repository 'Webmin Distribution Neutral' is unsigned, continue? [yes/no] (no): yes
Retrieving repository 'Webmin Distribution Neutral' metadata .............[done]
Building repository 'Webmin Distribution Neutral' cache ..................[done]
Specified repositories have been refreshed.

P.S. How this question is related to Network/Internet? And of course it should be indicated what distribution version is in use, because zypper features may be different.

1 Like