/opensuse-distribution-upgrade.sh

A simple shell script to automatically upgrade OpenSUSE

Primary LanguageShell

Clique em / Klicke auf / Click on / Cliquez sur :

What is this shell script good for?

The file opensuse-upgrade.sh is a shell script to automatically upgrade the OpenSUSE distribution in the simplest way possible. Meant, for example, to be passed to all those (distant) acquaintances on whose computers you installed OpenSUSE a while ago; whose installations better be maintained, though they know little about administrating Linux, but principally use

  • a web browser such as Firefox,

  • an office suite such as LibreOffice,

  • a media player such as VLC,

  • a PDF viewer such as Evince or Okular, and,

  • perhaps,

    • an email client such as Thunderbird, and
    • a picture organizer and editor such as digikam, Kamera and Krita,
    • an audio organizer such as picard, kid3 or easytag,
    • have happily discovered KDEconnect.

Word of Warning

It is officially recommended to update using a DVD; generally, a manual GUI or CLI approach to upgrade is more robust.

But they also demand more time and more experience in administering an openSUSE installation: The whole process of

  1. downloading the ISO file of the latest openSUSE installation DVD,
  2. loading it onto a bootable USB stick,
  3. booting the computer from the USB stick, and
  4. following trough the upgrade procedure,

requires more instructions than the ones for the online upgrade given here. These are for those users who know little about administering an openSUSE installation and are looking for a convenient way to keep it updated.

If finally you decide to follow the instructions given here, you have to trust the code executed underneath: Either ask a trustworthy third party that understands this fairly simple code, or inspect it yourself, to see that it only updates repository numbers, the distribution and some multimedia packages.

Parameters passed to the Script

The first, mandatory, parameter is the version number to be updated to, for example, openSUSE's current version number, at the time of writing 15.5. The second, optional, parameter --no-packman skips the installation of multimedia codes, for example, on a WSL installation without graphical interface.

Instructions for updating (in less than a minute)

To update the operating system openSUSE Leap:

  1. Connect the computer to the Internet.

  2. To start a console:

    1. press the Windows key (to the left of the space bar) once.
    2. type the word Konsole and press the Enter key to launch it.
    3. Then return to this browser window (by clicking on it).
  3. To insert the line below that reads curl ... into the Konsole (where 15.5 is to be replaced by openSUSE's current version number):

    curl -s https://raw.githubusercontent.com/Konfekt/opensuse-distribution-upgrade.sh/master/opensuse-upgrade.sh | sudo bash /dev/stdin 15.5
    1. mark it completely (say by a fast triple click on it),

    2. copy it (by simultaneously pressing the Ctrl and C keys), and

    3. insert it into the Konsole window by clicking the window and then pressing the Ctrl, SHIFT and V keys simultaneously

    4. press the Enter key.

  4. After entering the administrator password (where the entered letters are not displayed) and hitting the Enter key, the update starts and takes about half an hour.

Anleitung zur Aktualisierung (innerhalb einer Minute)

Zur Aktualisierung des Betriebssystems openSUSE Leap:

  1. Den Computer mit dem Internet verbinden.

  2. Um eine Konsole zu öffnen:

    1. Windowstaste (links neben der Leertaste) einmal drücken.
    2. Das Wort Konsole eingeben und die Eingabetaste drücken, um sie zu starten.
    3. Dann zu diesem Browserfenster zurückkehren (durch einen Klick hierauf).
  3. Um die folgende Zeile, die mit curl ... beginnt in die Konsole einzufügen (wobei 15.5 durch openSUSEs aktuelle Versionsnummer zu ersetzen ist):

    curl -s https://raw.githubusercontent.com/Konfekt/opensuse-distribution-upgrade.sh/master/opensuse-upgrade.sh | sudo bash /dev/stdin 15.5
    1. vollständig markieren (etwa durch einen schnellen Dreifachklick auf sie),

    2. kopieren (durch gleichzeitges Drücken der Tasten Strg und C), und

    3. in das Fenster der Konsole einfügen durch Klicken des Fensters und dann gleichzeitges Drücken der Tasten Strg, UMSCHALT und V:

    4. Eingabetaste drücken.

  4. Nach Eingabe des Administratorpassworts (wobei die eingegebenen Symbole nicht angezeigt werden) und drücken der Eingabetaste startet die Aktualisierung und dauert etwa eine halbe Stunde.

Instruções para atualizar (em menos de um minuto)

Para atualizar o sistema operacional openSUSE Leap:

  1. Conecte o computador à Internet.

  2. Para iniciar um console:

    1. Pressione a tecla Windows (à esquerda da barra de espaço) uma vez.
    2. Digite a palavra Konsole e pressione a tecla Enter para inicá-lo.
    3. Em seguida, volte a esta janela do navegador (clicando nela).
  3. Para inserir a linha abaixo que começa com curl ... no Konsole (onde 15.5 deve ser substituido pelo número da versão atual de openSUSE Leap):

    curl -s https://raw.githubusercontent.com/Konfekt/opensuse-distribution-upgrade.sh/master/opensuse-upgrade.sh | sudo bash /dev/stdin 15.5
    1. marque-a inteiramente (cliquando rápido três vezes sobre ela),

    2. copie-a (pressionando simultaneamente as teclas Ctrl e C), e

    3. insira-a na janela da Konsole, clicando a janela e em seguida pressionando simultaneamente as teclas Ctrl, SHIFT (= a tecla de maiúsculas) e V.

    4. pressione a tecla Enter.

  4. Após digitar a senha de administrador (onde os símbolos teclados não aparecem) e teclar Enter, a actualização começa e levará uma meia hora.

Instructions pour la mise à jour (en moins d'une minute)

Pour mettre à jour le système d'exploitation openSUSE Leap :

  1. Connectez l'ordinateur à l'Internet.

  2. Pour lancer une console :

    1. appuyez une fois sur la touche Windows (à gauche de la barre d'espacement).
    2. tapez le mot Konsole et appuyez sur la touche Entrée pour la lancer.
    3. Ensuite, revenez à cette fenêtre du navigateur (en cliquant dessus).
  3. Insérez la ligne ci-dessous qui se lit curl ... dans la console (où 15.5 doit être remplacé par le numéro de la version actuelle de openSUSE Leap) :

    curl -s https://raw.githubusercontent.com/Konfekt/opensuse-distribution-upgrade.sh/master/opensuse-upgrade.sh | sudo bash /dev/stdin 15.5
    1. marquez-la complètement (disons par un triple clic rapide sur elle),
    2. copiez-la (en appuyant simultanément sur les touches "Ctrl" et "C"), et
    3. insérez-la dans la fenêtre de la console en cliquant sur la fenêtre et en appuyant simultanément sur les touches Ctrl, SHIFT et V
    4. appuyez sur la touche Entrée.
  4. Après avoir saisi le mot de passe administrateur (où les lettres saisies ne sont pas affichées) et appuyé sur la touche Entrée, la mise à jour commence et prendra environ une demi-heure.