Removing Unwanted Mirrored Repos from RMT

Jan 30, 2024 14:13

rmt:/var/lib/rmt/public # for x in `find . -name "*aarch64*" | sed -r 's/.{2}//'` ; do rm -Rf $x ; done
rmt:/var/lib/rmt/public # for x in `find . -name "*s390x*" | sed -r 's/.{2}//'` ; do rm -Rf $x ; done
rmt:/var/lib/rmt/public # for x in `find . -name "*ppc64le*" | sed -r 's/.{2}//'` ; do rm -Rf $x ; done

Then rmt-cli mirror just the ones you need for quick/dirty:

rmt: # for x in `rmt-cli repos list --all | grep 15 | grep SP5 | grep -v Not | grep -v Don | awk '{print $2}'` ; do rmt-cli mirror repository $x ; done

linux, rmt

Previous post Next post
Up