Changes between Version 190 and Version 191 of Download


Ignore:
Timestamp:
2022-06-25T15:57:37+02:00 (4 years ago)
Author:
skyper
Comment:

better use local directory for keys; add missing --dearmor; removed outdated comment; update description for Debian

Legend:

Unmodified
Added
Removed
Modified
  • Download

    v190 v191  
    5858
    5959The repository contains two packages:
    60 * ''josm'' – Provides the tested version (stable). Replaces the package from the official repository of your distribution.
     60* ''josm'' – Provides the tested version (stable). Replaces the package from the official repository of your distribution. The default JOSM directories name is set to `JOSM`.
    6161* ''josm-latest'' – The latest version (nightly). Can be installed in parallel to the josm package, therefore the default JOSM directories name is set to `JOSM-latest`.
    6262
     
    6464
    6565==== Installation ====
    66 Edit the package resource list `/etc/apt/sources.list`:
    67 
    68 {{{#!sh
    69 sudo editor /etc/apt/sources.list
     66Edit the package resource list `/etc/apt/sources.list.d/josm.list`:
     67{{{#!sh
     68sudo editor /etc/apt/sources.list.d/josm.list
    7069}}}
    7170{{{#!comment
    7271### below does not work on GNU Debian systems
    73 `sudo $EDITOR /etc/apt/sources.list`
     72`sudo $EDITOR /etc/apt/sources.list.d/josm.list`
    7473}}}
    7574
     
    7776
    7877{{{#!sh
    79 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt jammy universe
    80 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt impish universe
    81 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt hirsute universe
    82 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt groovy universe
    83 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt focal universe
    84 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt eoan universe
    85 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt disco universe
    86 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt bionic universe
     78deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt jammy universe
     79deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt impish universe
     80deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt hirsute universe
     81deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt groovy universe
     82deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt focal universe
     83deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt eoan universe
     84deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt disco universe
     85deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt bionic universe
    8786
    8887# For other Debian based distributions add:
    89 deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt alldist universe
     88deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt alldist universe
    9089}}}
    9190
    9291Alternatively, this can be done with the following one-liner in Ubuntu (not for Ubuntu based distributions like Linux Mint):
    9392{{{
    94 echo "deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt $(lsb_release -sc) universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
     93echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt $(lsb_release -sc) universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
    9594}}}
    9695or for Linux Mint:
    9796{{{
    98 echo "deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt $(grep ^DISTRIB_CODENAME= /etc/upstream-release/lsb-release| awk -F = '{print $(2)}') universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
     97echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt $(grep ^DISTRIB_CODENAME= /etc/upstream-release/lsb-release| awk -F = '{print $(2)}') universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
    9998}}}
    10099
     
    102101### below did not work on all systems
    103102and add the following line:
    104 `deb [signed-by=/usr/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt VERSION universe`
     103`deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt VERSION universe`
    105104}}}
    106105
    107106Download the [/josm-apt.key public key]:
    108107{{{#!sh
    109 sudo wget -O /usr/share/keyrings/josm-apt.key https://josm.openstreetmap.de/josm-apt.key
    110 }}}
    111 
    112 {{{#!comment
    113 Below is too short and does not solve the security issue, see [https://wiki.debian.org/DebianRepository/UseThirdParty?action=show&redirect=RepositoryInstructions#Instructions_to_connect_to_a_third-party_repository] and #22148.
    114 }}}
    115 {{{#!comment
    116 or
    117 {{{#!sh
    118 curl https://josm.openstreetmap.de/josm-apt.key  | gpg --dearmor > /etc/apt/trusted.gpg.d/josm.gpg
    119 }}}
    120 }}}
    121 
    122 Now refresh your sources (you may need to install `sudo apt-get install apt-transport-https`)
    123 {{{#!sh
     108# create the local directory for keys if it was not already created
     109sudo mkdir -p /usr/local/share/keyrings
     110# download the key
     111wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor > /usr/local/share/keyrings/josm.gpg
     112}}}
     113
     114Now refresh your sources:
     115{{{#!sh
     116# you may need to install ssl support for apt in advance:
     117sudo apt-get install apt-transport-https
     118# refresh sources
    124119sudo apt-get update
    125120}}}
     121
    126122and install:
    127 
    128123{{{#!sh
    129124# You can skip this first line if these packages were not installed before.
     
    138133
    139134=== GNU Debian ===#GNUDebian
    140 The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**.
    141 
    142 Please, use the [https://backports.debian.org backports repository] to get the up to date version, see [https://backports.debian.org/Instructions Instructions].
    143 
    144 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`.
    145 
    146 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.
     135Our 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`.
     136
     137Since Debian 11 (bullseye) the [https://packages.debian.org/stable/josm-installer josm-installer] is available under **''main''** in section **''utils''**, which downloads the current .jar file from this site is an additional option for an up-to-date JOSM.
     138
     139The tested version of [https://packages.debian.org/stable/josm JOSM] is available under **''main''** in section **''utils''**, but the version is usually quiet old. \\
     140Please, 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.
    147141
    148142=== openSUSE  ===#Opensuse