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

--invert equivalent for pacconf #12

Closed
AladW opened this issue Jul 27, 2016 · 2 comments
Closed

--invert equivalent for pacconf #12

AladW opened this issue Jul 27, 2016 · 2 comments

Comments

@AladW
Copy link

AladW commented Jul 27, 2016

This could be useful to copy over pacman configuration from an x86_host to an i686 container on an x86_64 host, as the host can set repositories which are invalid for the container (i.e., [multilib] on Arch).

@andrewgregory
Copy link
Owner

Following 92eee4e, this can be done relatively easily with something like the following bash snippet:

printf "[options]\n"
pacconf --options
while IFS=$'\n' read -r r; do
    printf "[%s]\n" "$r"
    pacconf --repo="$r"
done < <(pacconf --repo-list | grep -vxF -- "$ignored_repo")

@AladW
Copy link
Author

AladW commented Sep 8, 2016

Thanks, that works fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants