Skip to content

Instantly share code, notes, and snippets.

@sumeet
Created May 12, 2025 19:44
Show Gist options
  • Save sumeet/5834eb486ef4de6c8243774a0af96e0d to your computer and use it in GitHub Desktop.
Save sumeet/5834eb486ef4de6c8243774a0af96e0d to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
OUTDIR="/var/cache/pacman/pkg"
threads = ARGV.flat_map do |arg|
[Thread.new { system "sudo curl -L -O --output-dir #{OUTDIR} https://archive.archlinux.org/.all/#{arg}" },
Thread.new { system "sudo curl -L -O --output-dir #{OUTDIR} https://archive.archlinux.org/.all/#{arg}.sig" }]
end
threads.each(&:join)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment