Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for AUR package downgrading #223

Closed
2 tasks done
KAGEYAM4 opened this issue Mar 2, 2024 · 5 comments
Closed
2 tasks done

Add documentation for AUR package downgrading #223

KAGEYAM4 opened this issue Mar 2, 2024 · 5 comments

Comments

@KAGEYAM4
Copy link

KAGEYAM4 commented Mar 2, 2024

🚀 Feature Request

Checklist

  • No duplicate issues/PRs
  • Are you running the latest downgrade release from the AUR?

Background

I tried downgrading packages which i got from AUR using yay which are caches in ~/.cace/yay but downgrading failed - No results found

Proposed feature

Add support for downgrading AUR packages by using yay/paru cached packages.

@KAGEYAM4 KAGEYAM4 added enhancement triage Requires triage to ascertain relevance and actions labels Mar 2, 2024
@atreyasha
Copy link
Member

atreyasha commented Mar 2, 2024

Does it work with this?

# downgrade --pacman-cache ~/.cache/yay --maxdepth 2 <aur_pkg>

You can set these options persistently in /etc/xdg/downgrade/downgrade.conf and specify the --pacman-cache option multiple times to cover both standard and AUR cache locations, eg. --pacman-cache /var/cache/pacman/pkg --pacman-cache /home/<user>/.cache/yay.

@KAGEYAM4
Copy link
Author

KAGEYAM4 commented Mar 2, 2024

Does it work with this?

# downgrade --pacman-cache ~/.cache/yay --maxdepth 2 <aur_pkg>

You can set these options persistently in /etc/xdg/downgrade/downgrade.conf and specify the --pacman-cache option multiple times to cover both standard and AUR cache locations, eg. --pacman-cache /var/cache/pacman/pkg --pacman-cache ~/.cache/yay.

Yuup this works, thank you.

Maybe add this to readme.

@atreyasha atreyasha removed enhancement triage Requires triage to ascertain relevance and actions labels Mar 2, 2024
@KAGEYAM4 KAGEYAM4 closed this as completed Mar 2, 2024
@KAGEYAM4 KAGEYAM4 reopened this Mar 2, 2024
@KAGEYAM4
Copy link
Author

KAGEYAM4 commented Mar 2, 2024

i will keep it open, so that you can track it for the documentation PR.

Also, can we use shell variable in the .conf file like - --pacman-cache /home/${USER}/.cache/yay ?

@KAGEYAM4 KAGEYAM4 changed the title support AUR package downgrading Add documentation for AUR package downgrading Mar 2, 2024
@atreyasha
Copy link
Member

atreyasha commented Mar 2, 2024

i will keep it open, so that you can track it for the documentation PR.

Thanks!

Also, can we use shell variable in the .conf file like - --pacman-cache /home/${USER}/.cache/yay ?

Unfortunately that does not work in the configuration file, as downgrade is run as root and does not have knowledge of the non-root user during execution. So it would have to be the full (expanded) path.

Edit: Also we deliberately disable evaluations in the configuration file for security reasons.

@pbrisbin
Copy link
Member

Tracking as #232

@pbrisbin pbrisbin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants