1

I would like to have an backup of all pacaur and pacman packages.

Example: https://www.archlinux.org/packages/

How to download it all?

MaxSilvester
  • 207
  • 2
  • 9
SpotBR
  • 11
  • 2

1 Answers1

1

You can download all pacman packages with pacman -Ssq | xargs pacman -Swdd or get the URLs with pacman -Ssq | xargs pacman -Swpdd.

  • -Ss lists all packages
  • -q only outputs the package name.
  • -Sw only downloads the packages`
  • -dd ignores all dependencies
  • -p prints the targets.

pacman will download them to /var/cache/pacman/pkg but you can change it by changeing CacheDir in /etc/pacman.conf.

AUR packages need to be built, so you would have to build every single AUR package. Some PKGBUILDs (e.g.aur) just install everything with sudo so you would have to check every PKGBUILD.

MaxSilvester
  • 207
  • 2
  • 9
  • Really thx!! You are a master! There is an way to download pacaur unbuilded? – SpotBR Nov 11 '20 at 20:47
  • I would like to download all pacaur even if it is unbuilded. I'm doing a backup of the internet. – SpotBR Nov 11 '20 at 20:49
  • It would be hard, because PKGBUILDs contain links to the source files. Some source files are multiple gigabytes big and others may not be available anymore. The source files could include scripts, which could download other files. – MaxSilvester Nov 11 '20 at 23:24
  • Thx! Your knowledge is gratifying. – SpotBR Nov 12 '20 at 00:45