mirrorz-org / mirrorz-help

https://help.mirrorz.org
MIT License
57 stars 38 forks source link

contents(rpmfusion): add sed command and some other fixes #151

Closed taoky closed 2 weeks ago

taoky commented 2 weeks ago
cloudflare-pages[bot] commented 2 weeks ago

Deploying mirrorz-help with  Cloudflare Pages  Cloudflare Pages

Latest commit: 49f3989
Status: ✅  Deploy successful!
Preview URL: https://761aa1a5.mirrorz-help.pages.dev
Branch Preview URL: https://rpmfusion-fix.mirrorz-help.pages.dev

View logs

taoky commented 2 weeks ago

@Artoria2e5 could you help check if this is correct? If so it would be merged here and then ported to mirrorz-docs.

Related: https://github.com/mirrorz-org/mirrorz-docs/issues/15

Artoria2e5 commented 2 weeks ago

I just checked the rpmfusion packages -- the EL 7 and 8 ones use mirrorlist, so one more -e is required to support every system:

{{sudo}}sed -e 's!^metalink=!#metalink=!g' \
            -e 's!^mirrorlist=!#mirrorlist=!g' \
            -e 's!^#baseurl=!baseurl=!g' \
            -e 's!https\?://download1\.rpmfusion\.org/!{{http_protocol}}{{mirror}}/!g' \
            -i.bak /etc/yum.repos.d/rpmfusion*.repo

Other than that, all good!