Skip to content

Instantly share code, notes, and snippets.

@taboularasa
Last active October 12, 2021 20:27
Show Gist options
  • Save taboularasa/8e09f06b90222bdca0e1d102dba80f11 to your computer and use it in GitHub Desktop.
Save taboularasa/8e09f06b90222bdca0e1d102dba80f11 to your computer and use it in GitHub Desktop.
alternative to `apt-key add` for installing Debian packages
curl -sLS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install --no-install-recommends yarn
curl -sLS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update && apt-get install --no-install-recommends yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment