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?

1 Answer 1

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.

4
  • Really thx!! You are a master! There is an way to download pacaur unbuilded?
    – SpotBR
    Nov 11, 2020 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, 2020 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. Nov 11, 2020 at 23:24
  • Thx! Your knowledge is gratifying.
    – SpotBR
    Nov 12, 2020 at 0:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .