Article 557TH How to automate mirror selection for slackpkg?

How to automate mirror selection for slackpkg?

by
FlinchX
from LinuxQuestions.org on (#557TH)
slackpkg needs a repo line uncommented in /etc/slacpkg/mirrors to work properly.

How to automate the mirror selection process in a script?

Not looking for actual code, still trying to understand the idea. Should I just try mirrors one by one until one works? And how would I know that a mirror worked? The manpage for slackpkg doesn't seem to have anything about different exit codes being returned when a mirror works or not. Even when no mirrors are active, it prints that error message, yet exits with code 0 as well.latest?d=yIl2AUoC8zA latest?i=3kcv6usy9Vw:UfdWzP2b800:F7zBnMy latest?i=3kcv6usy9Vw:UfdWzP2b800:V_sGLiP latest?d=qj6IDK7rITs latest?i=3kcv6usy9Vw:UfdWzP2b800:gIN9vFw3kcv6usy9Vw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments