| 79 | | deb https://josm.openstreetmap.de/apt jammy universe |
| 80 | | deb https://josm.openstreetmap.de/apt impish universe |
| 81 | | deb https://josm.openstreetmap.de/apt hirsute universe |
| 82 | | deb https://josm.openstreetmap.de/apt groovy universe |
| 83 | | deb https://josm.openstreetmap.de/apt focal universe |
| 84 | | deb https://josm.openstreetmap.de/apt eoan universe |
| 85 | | deb https://josm.openstreetmap.de/apt disco universe |
| 86 | | deb https://josm.openstreetmap.de/apt bionic universe |
| | 78 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt jammy universe |
| | 79 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt impish universe |
| | 80 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt hirsute universe |
| | 81 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt groovy universe |
| | 82 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt focal universe |
| | 83 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt eoan universe |
| | 84 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt disco universe |
| | 85 | deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt bionic universe |
| 104 | | `deb https://josm.openstreetmap.de/apt VERSION universe` |
| 105 | | }}} |
| 106 | | |
| 107 | | Download and register the [/josm-apt.key public key]: |
| 108 | | {{{#!sh |
| 109 | | wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add - |
| 110 | | }}} |
| 111 | | |
| 112 | | |
| 113 | | Now refresh your sources (you may need to install `sudo apt-get install apt-transport-https`) |
| 114 | | {{{#!sh |
| | 103 | {{{#!sh |
| | 104 | `deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt VERSION universe` |
| | 105 | }}} |
| | 106 | }}} |
| | 107 | |
| | 108 | Download the [/josm-apt.key public key]: |
| | 109 | {{{#!sh |
| | 110 | # Create the directory for manually downloaded keys if it was not already created |
| | 111 | sudo mkdir -p /usr/local/share/keyrings |
| | 112 | # Download the key |
| | 113 | wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor > /usr/local/share/keyrings/josm-apt.gpg |
| | 114 | }}} |
| | 115 | In the past, instructions used `apt-key`. If the key was added to system's keyring, following line will remove it: |
| | 116 | {{{#!sh |
| | 117 | sudo apt-key del $(apt-key list | grep -B1 "<josm-dev@openstreetmap.org>" | sed '$d' | cut -b 48-51,53-57) |
| | 118 | }}} |
| | 119 | |
| | 120 | Now refresh your sources: |
| | 121 | {{{#!sh |
| | 122 | # You may need to install ssl support for apt in advance: |
| | 123 | sudo apt-get install apt-transport-https |
| | 124 | # Refresh sources |
| 131 | | The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**. |
| 132 | | |
| 133 | | Please, use the [https://backports.debian.org backports repository] to get the up to date version, see [https://backports.debian.org/Instructions Instructions]. |
| 134 | | |
| 135 | | Alternatively, our own Ubuntu packages, [#Ubuntu above], work on Debian. Depending on the setup of `sudo`, some instruction will not work as "normal" user but only as `root`. |
| 136 | | |
| 137 | | Since Debian 11 (bullseye), [https://packages.debian.org/stable/josm-installer josm-installer] which downloads the .jar file from this site is an additional option for an up-to-date JOSM. |
| | 141 | Our own Ubuntu packages, [#Ubuntu above], work on Debian and we recommend to use them. Depending on the setup of `sudo`, some instruction will not work as "normal" user but only as `root`. |
| | 142 | |
| | 143 | Since Debian 11 (bullseye) the [https://packages.debian.org/stable/josm-installer josm-installer] is available under **''main''** in section **''utils''**. It downloads the current .jar file from this site and updates it if necessary. |
| | 144 | |
| | 145 | The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**, but the version is usually quiet old. \\ |
| | 146 | Please, use the [https://backports.debian.org backports repository] to get a more up-to-date version, see [https://backports.debian.org/Instructions Instructions]. Still this version might be quiet old. |