- Find link to GPG key online and save it in
usr/share/keyrings/
with the command:
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnpkg.gpg > /dev/null
- Create yarnpkg.list in
etc/apt/sources.list.d/
with the contents:
deb [signed-by=/usr/share/keyrings/yarnpkg.gpg] https://dl.yarnpkg.com/debian/ stable main
=====
Important Directories:
/usr/share/keyrings
/etc/apt/trusted.gpg.d
/etc/apt/sources.list.d