Changes between Version 191 and Version 192 of Download


Ignore:
Timestamp:
2022-06-25T16:26:34+02:00 (3 years ago)
Author:
skyper
Comment:

add comment to remove the key from system's keyring; fixed file extension; little formatting

Legend:

Unmodified
Added
Removed
Modified
  • Download

    v191 v192  
    7676
    7777{{{#!sh
    78 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt jammy universe
    79 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt impish universe
    80 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt hirsute universe
    81 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt groovy universe
    82 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt focal universe
    83 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt eoan universe
    84 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt disco universe
    85 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt bionic universe
     78deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt jammy universe
     79deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt impish universe
     80deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt hirsute universe
     81deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt groovy universe
     82deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt focal universe
     83deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt eoan universe
     84deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt disco universe
     85deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt bionic universe
    8686
    8787# For other Debian based distributions add:
    88 deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt alldist universe
     88deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt alldist universe
    8989}}}
    9090
    9191Alternatively, this can be done with the following one-liner in Ubuntu (not for Ubuntu based distributions like Linux Mint):
    92 {{{
    93 echo "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
     92{{{#!sh
     93echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt $(lsb_release -sc) universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null
    9494}}}
    9595or for Linux Mint:
    96 {{{
    97 echo "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
     96{{{#!sh
     97echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] 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
    9898}}}
    9999
     
    101101### below did not work on all systems
    102102and add the following line:
    103 `deb [signed-by=/usr/local/share/keyrings/josm-apt.key] https://josm.openstreetmap.de/apt VERSION universe`
     103{{{#!sh
     104`deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt VERSION universe`
     105}}}
    104106}}}
    105107
    106108Download the [/josm-apt.key public key]:
    107109{{{#!sh
    108 # create the local directory for keys if it was not already created
     110# Create the directory for manually downloaded keys if it was not already created
    109111sudo mkdir -p /usr/local/share/keyrings
    110 # download the key
    111 wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor > /usr/local/share/keyrings/josm.gpg
     112# Download the key
     113wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor > /usr/local/share/keyrings/josm-apt.gpg
     114}}}
     115In the past, instructions used `apt-key`. If the key was added to system's keyring, following line will remove it:
     116{{{#!sh
     117sudo apt-key del $(apt-key list | grep -B1  "<josm-dev@openstreetmap.org>" | sed '$d' | cut -b 48-51,53-57)
    112118}}}
    113119
    114120Now refresh your sources:
    115121{{{#!sh
    116 # you may need to install ssl support for apt in advance:
     122# You may need to install ssl support for apt in advance:
    117123sudo apt-get install apt-transport-https
    118 # refresh sources
     124# Refresh sources
    119125sudo apt-get update
    120126}}}
     
    127133# For the tested version
    128134sudo apt-get install josm
    129 # for the development version
     135# For the development version
    130136sudo apt-get install josm-latest
    131137}}}
     
    145151
    146152First add as root user in yast or with zypper the repository:
    147 {{{
     153{{{#!sh
    148154zypper ar -f 'https://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_$releasever' Application:Geo
    149155}}}