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

[RFC] Support repository sources #122

Open
woky opened this issue Feb 7, 2019 · 0 comments
Open

[RFC] Support repository sources #122

woky opened this issue Feb 7, 2019 · 0 comments

Comments

@woky
Copy link

woky commented Feb 7, 2019

This is probably out of scope as it has too many variables, but for me, pacapt could completely abstract distro-specific package managers if it would also support adding additional repositories.

For instance, sometimes I need to install Docker CE on Debian as described in https://docs.docker.com/install/linux/docker-ce/debian/. The steps are roughly equivalent to:

apt update
apt install apt-transport-https ca-certificates gnupg2 lsb-release

OS_ID=$(lsb_release -si | tr '[:upper:]' '[:lower:]')
OS_REL=$(lsb_release -sc)

repo_name=docker-ce
base_url=https://download.docker.com/linux

curl -sSL $base_url/$OS_ID/gpg | apt-key add -
echo "deb [arch=amd64] $base_url/$OS_ID $OS_REL stable" >/etc/apt/sources.list.d/$repo_name.list
apt update
@woky woky changed the title [RFE] Support repository sources [RFC] Support repository sources Feb 7, 2019
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

2 participants