Easy methods to improve OpenSUSE 15.2 to fifteen.3 utilizing the CLI

Get real time updates directly on you device, subscribe now.

The most superior OpenSUSE model is 15.3 and is a chance for each desktop and server customers on the earlier 15.2 launch to replace OpenSUSE Linux to get the most recent software program stack. It’s simple to observe the process to improve OpenSUSE 15.2 to fifteen.3. On this tutorial, we’ll clarify easy methods to improve OpenSUSE 15.2 to fifteen.3.

Step 1. Preparations – Backup all the things

Hold verified backups: Don’t skip this step. You have to again up all knowledge and config recordsdata earlier than typing any of the next instructions. Additionally, ensure your system backup is up-to-date and restorable in case of an emergency. The writer or nixCraft just isn’t accountable for damages.

Step 2. Replace OpenSUSE 15.2 packages

openSUSE Leap model 15.3 is barely out there because the 64-bit launch. Then, kind the next zypper command to replace all present packages. To refresh a repo, enter:
$ sudo zypper ref

Repository ‘openSUSE-Leap-15.2’ is updated.
Retrieving repository ‘openSUSE-Leap-15.2-Replace’ metadata …………..[done]
Constructing repository ‘openSUSE-Leap-15.2-Replace’ cache ……………….[done]
Repository ‘openSUSE-Leap-15.2-Replace-Non-Oss’ is updated.
All repositories have been refreshed.

Replace ALL put in packages with newer variations

Earlier than the improve process can start, apply all pending upgrades:
$ sudo zypper up

Step 3. Reboot the server

Now word down the present Linux kernel model, kind:
$ uptime
$ uname -mrs
You have to reboot the Linux cloud field, run:
$ sudo systemctl reboot
## OR ##
$ sudo shutdown -r now
Log in utilizing the ssh command as soon as system comes again on-line:
$ ssh ec2-user@your-aws-ec2-dns-ip-here
## OR ##
$ ssh root@your-Linode-dns-ip-here
Then confirm Linux kernel model:
$ uname -mrs
Additionally word down the OpenSUSE Linux model utilizing the cat command:
$ cat /and so forth/os-release

Step 4. Upgrading OpenSUSE 15.2 to fifteen.3

Now my cloud server is absolutely patched. It’s time to replace the server to OpenSUSE model 15.3.

Record the repositories

The replace repository should exist and is enabled and replace earlier than upgrading to fifteen.2. Confirm it:
$ sudo zypper repos –uri
## OR ##
$ sudo zypper lr -u
Output indicating that there aren’t any third occasion repos and Replace repos are enabled on my server:

Repository priorities are with out impact. All enabled repositories share the identical precedence.
 
# | Alias | Identify | Enabled | GPG Verify | Refresh | URI
–+———————————–+———————————–+———+———–+———+————————————————————–
1 | openSUSE-Leap-15.2 | openSUSE-Leap-15.2 | Sure | (r ) Sure | Sure | http://obtain.opensuse.org/distribution/leap/15.2/repo/oss/
2 | openSUSE-Leap-15.2-Replace | openSUSE-Leap-15.2-Replace | Sure | (r ) Sure | Sure | http://obtain.opensuse.org/replace/leap/15.2/oss/
3 | openSUSE-Leap-15.2-Replace-Non-Oss | openSUSE-Leap-15.2-Replace-Non-Oss | Sure | (r ) Sure | Sure | http://obtain.opensuse.org/replace/leap/15.2/non-oss/

Confirm that we will get 15.3 model, run:
$ sudo zypper –releasever=15.3 lr -u

Warning: Enforced setting: $releasever=15.3
Repository priorities are with out impact. All enabled repositories share the identical precedence.
 
# | Alias | Identify | Enabled | GPG Verify | Refresh | URI
–+———————————–+———————————–+———+———–+———+————————————————————–
1 | openSUSE-Leap-15.2 | openSUSE-Leap-15.2 | Sure | (r ) Sure | Sure | http://obtain.opensuse.org/distribution/leap/15.3/repo/oss/
2 | openSUSE-Leap-15.2-Replace | openSUSE-Leap-15.2-Replace | Sure | (r ) Sure | Sure | http://obtain.opensuse.org/replace/leap/15.3/oss/
3 | openSUSE-Leap-15.2-Replace-Non-Oss | openSUSE-Leap-15.2-Replace-Non-Oss | Sure | (r ) Sure | Sure | http://obtain.opensuse.org/replace/leap/15.3/non-oss/

Within the above output end result, examine the final URI column). All repository hyperlinks ought to include 15.3 or openSUSE_Leap_15.3 as a model quantity.

Operating the improve for 15.3

It’s time to swap and refresh all repositories to fifteen.3 utilizing the next syntax and seize the repository metadata:
$ sudo zypper –releasever=15.3 ref

Warning: Enforced setting: $releasever=15.3
Retrieving repository ‘openSUSE-Leap-15.2’ metadata ……………………………………………………………………………………………………..[done]
Constructing repository ‘openSUSE-Leap-15.2’ cache ………………………………………………………………………………………………………….[done]
Retrieving repository ‘openSUSE-Leap-15.2-Replace’ metadata ……………………………………………………………………………………………….[done]
Constructing repository ‘openSUSE-Leap-15.2-Replace’ cache ……………………………………………………………………………………………………[done]
Retrieving repository ‘openSUSE-Leap-15.2-Replace-Non-Oss’ metadata ………………………………………………………………………………………..[done]
Constructing repository ‘openSUSE-Leap-15.2-Replace-Non-Oss’ cache …………………………………………………………………………………………….[done]
All repositories have been refreshed.

Lastly, execute the next command for full distribution improve to fifteen.3 from 15.2. Please word that command have to be typed from non-GUI (KDE/GNOME) mode. Therefore, it’s endorsed you run the command from both runlevel 3 (textual content + community), or a digital console (see easy methods to swap boot goal to textual content or GUI in systemd Linux for more information.). You possibly can press Ctrl-Alt-F2 (all on the similar time) to modify to digital terminal 2. One also can concern the next command:
sudo systemctl set-default multi-user.goal
Allow us to begin the distribution improve that may get your system to the brand new model:
$ sudo zypper –releasever=15.3 dup

Click on to enlarge

Affirmation

On the following immediate kind y and hit the [Enter] key:

The next bundle requires a system reboot:
kernel-default-5.3.18-57.3
 
847 packages to improve, 51 to downgrade, 73 new, 6 to take away, 862 to alter vendor.
General obtain dimension: 653.9 MiB. Already cached: 0 B. After the operation, extra 13.8 MiB will
be used.
 
Word: System reboot required.
Proceed? [y/n/v/…? shows all options] (y): y

The zypper will obtain and set up or improve a complete of 971 packages on my cloud server. The process to obtain and set up packages takes its personal candy time. So, naturally, your Web and cloud server velocity performs a major function. Ultimately, you must see an output as follows displaying you need to reboot the OpenSUSE server or desktop:

dracut: *** Retailer present command line parameters ***
dracut: Saved kernel commandline:
dracut: resume=UUID=24418656-eb70-41d4-8ac8-b703dbe3fe86
dracut: root=UUID=9339435a-b681-4b37-b031-9c9e60094062 rootfstype=ext4 rootflags=rw,relatime
dracut: *** Creating picture file ‘/boot/initrd-5.3.18-lp152.87-default’ ***
dracut: *** Creating initramfs picture file ‘/boot/initrd-5.3.18-lp152.87-default’ carried out ***
 
Executing %posttrans script ‘btrfsprogs-4.19.1-16.1.x86_64.rpm’ ………………….<81%>=======[]
Output of dmraid-1.0.0.rc16-3.26.x86_64.rpm %posttrans script:
Updating /and so forth/sysconfig/dmraid …
 
Executing %posttrans scripts …………………………………………………………[done]
There are operating applications which nonetheless use recordsdata and libraries deleted or up to date by latest upgrades. They need to be restarted to profit from the newest updates. Run ‘zypper ps -s’ to checklist these applications.
 
For the reason that final system boot core libraries or companies have been up to date.
Reboot is usually recommended to make sure that your system advantages from these updates.

Subsequently, reboot the Linode or AWS cloud server:
$ sudo shutdown -r now

Patreon supporters solely guides 🤓

No adverts and monitoring
In-depth guides for builders and sysadmins at Opensourceflare✨
Be a part of my Patreon to help impartial content material creators and begin studying newest guides:

Be a part of Patreon

Step 5: Verification

Ensure all the things is working. First, discover OpenSuse Linux Model and different data:
$ uname -mrs
$ cat /and so forth/os-release
$ hostnamectl

Then examine your Linux server log file. For example, use the journalctl command/tail command/dmesg command command and others:
$ sudo tail -f /var/log/nginx/wiki.cyberciti.biz_access.log
$ dmesg | extra
$ journalctl -xe

Step 6: Apply any newly launched updates

Lastly, once more use the zypper command to use safety patches, software program updates and Linux kernel:
$ sudo zypper refresh
$ sudo zypper patch
$ sudo zypper replace
# if a brand new Linux kernel put in, reboot the field
$ sudo reboot
My software program stack is now up to date to the newest secure launch as follows:

Nginx v1.19.8 (caching and reverse proxy server)
PHP v7.4.6 (FastCGI)
Django 2.2.12-bp153.1.22
Apache v2.4.43-3.25.1 (app server)
Python v3.6.13
Perl v5.26.1
MariaDB 10.5.12-3.6.1 (database)
Postgresql 13.3-5.13.1 (model 12 can be avilble)
Docker 20.10.6_ce-6.49.3

Summing up

This tutorial taught you easy methods to replace OpenSUSE Linux Leap from 15.2 to fifteen.3 utilizing the CLI over ssh primarily based session. For extra info, see the discharge word and obtain OpenSUSE Linux.

ADVERTISEMENT

Comments are closed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More