KEY_DIR=/etc/apt/keyrings

wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor -o ${KEY_DIR}/josm-apt.gpg

echo deb [signed-by=${KEY_DIR}/josm-apt.gpg]https://josm.openstreetmap.de/apt alldist universe | sudo tee /etc/apt/sources.list-available/josm.list > /dev/null

sudo ln -s /etc/apt/sources.list-available/josm.list /etc/apt/sources.list.d/josm.list

sudo apt-get update ; sudo apt-get -y install josm
