Skip to content

Commit 038ca1b

Browse files
Update linux-upgrade-sles.md
Made changes as requested by Ratnangi.
1 parent e36290d commit 038ca1b

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

support/azure/virtual-machines/linux/linux-upgrade-sles.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -555,20 +555,21 @@ Mid of 2023, SUSE has changed the GPG signing key for the SUSE Linux Enterprise
555555
### Resolution
556556

557557
1. Verify the existing keys.
558+
```bash
559+
sudo rpm -q gpg-pubkey
560+
```
558561
```output
559-
# rpm -q gpg-pubkey
560562
gpg-pubkey-39db7c82-66c5d91a
561563
gpg-pubkey-50a3dd1c-50f35137
562564
```
563-
2. Create a file named `repo-signing-key-sle-15.txt` using vi editor.
565+
2. Create a file named `repo-signing-key-sle-15.txt` using `vi` editor under your home directory.
564566

565567
```bash
566-
# vi repo-signing-key-sle-15.txt
568+
sudo vi repo-signing-key-sle-15.txt
567569
```
568-
569570
3. Add the following contents and save the file.
571+
570572
```bash
571-
# cat repo-signing-key-sle-15.txt
572573
-----BEGIN PGP PUBLIC KEY BLOCK-----
573574
Version: GnuPG v2.0.15 (GNU/Linux)
574575
@@ -601,19 +602,23 @@ Y0bH1r5E/rCFhRii/iyCxZN/2KIg/dHo8BXoh5zvzJ1XZ/bgiDnWSkQvdA==
601602
```
602603
4. Import the key from the file `repo-signing-key-sle-15.txt`.
603604
```bash
604-
# rpm --import repo-signing-key-sle-15.txt
605+
sudo rpm --import repo-signing-key-sle-15.txt
605606
```
606607
5. Verify if the key is imported.
608+
```bash
609+
sudo rpm -q gpg-pubkey
610+
```
607611
```output
608-
# rpm -q gpg-pubkey
609612
gpg-pubkey-39db7c82-66c5d91a
610613
gpg-pubkey-50a3dd1c-50f35137
611614
gpg-pubkey-3fa1d6ce-63c9481c
612615
```
613616
6. Initiate migration.
614617

618+
```bash
619+
sudo zypper migration -v
620+
```
615621
```output
616-
# zypper migration -v
617622
.
618623
.
619624
All repositories have been refreshed.
@@ -917,12 +922,14 @@ Reboot is suggested to ensure that your system benefits from these updates.
917922
```
918923
7. Verify successful execution of migration.
919924
```bash
920-
# echo $?
925+
sudo echo $?
926+
```
927+
```output
921928
0
922929
```
923930
8. Reboot the VM.
924931
```bash
925-
# reboot
932+
sudo reboot
926933
```
927934
After reboot, the VM will be successfully migrated to SLES 15 SP6.
928935

0 commit comments

Comments
 (0)