Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

Add caching to yaourt #299

Open
alexoneill opened this issue Oct 4, 2016 · 3 comments
Open

Add caching to yaourt #299

alexoneill opened this issue Oct 4, 2016 · 3 comments

Comments

@alexoneill
Copy link

alexoneill commented Oct 4, 2016

pacman(8) has a caching feature, and the ability to "download only". See the folllowing excerpts from the man page:

       --cachedir <dir>
           Specify an alternative package cache location (a typical default
           is /var/cache/pacman/pkg). Multiple cache directories can be specified,
           and they are tried in the order they are passed to pacman.  NOTE: This
           is an absolute path, and the root path is not automatically prepended.
       -w, --downloadonly
           Retrieve all packages from the server, but do not install/upgrade anything.

This proposes to add the above functionality into yaourt. Specifically:

  • The ability to cache fully built packages in a specified directory
  • The ability to install cached packages from a specified directory
  • The ability to download only (only build, skipping install) within the caching directory

Currently, yaourt does not support these operations, but comes close with --export.

@f2404
Copy link
Collaborator

f2404 commented Oct 5, 2016

The ability to cache fully built packages in a specified directory
The ability to install cached packages from a specified directory

These are already available - pacman's cachedir is used for that.

The ability to download only (only build, skipping install) within the caching directory

Build a package and save it to cache without installing? Do you need this?

@alexoneill
Copy link
Author

The second feature would be nice to have for AUR caching, specifically for offline package installation. Other AUR package managers, such as pacaur have this feature.

@Skunnyk
Copy link
Member

Skunnyk commented Mar 21, 2017

Hello,
What about EXPORT=1 and EXPORTDIR settings in yaourtrc ? It's not perfect, but it can store source and compiled packages (based on makepkg PKGDEST). Or do I miss something ?

@Skunnyk Skunnyk reopened this Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants