[Solved] How to update installed software?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
PiOSFan
Posts: 12
Joined: Mon Dec 05, 2016 8:36 am

[Solved] How to update installed software?

Post by PiOSFan »

Hi,
I have recently set up two Raspis with Dietpi. The first one with DietPi_v6.16, the second one with DietPi_v6.17. Both have LAMP installed.

I had some issues getting the MariaDB SSL connection running with the first one. The second installation went strait forward and is working fine.
Today I updated Dietpi to 6.18. After that I wanted to check if my issues with the first one was due to the older YaSSL version and now disappeard.

Code: Select all

Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0
| version_ssl_library | YaSSL 2.4.2                    |
Raspi 2 has:

Code: Select all

Server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0
| version_ssl_library | YaSSL 2.4.4                    |
I thought all software packages would be updated to the same level with a new dietpi version.
How can I update a single Dietpi-package to a new version?
Can I update the single components of a package like LAMP to only update the Database but not the SSL library?

Thanks,
Markus
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: How to update installed software?

Post by WarHawk »

Have you run any apt-get updates and upgrades yet?

This should update all packages to the latest packages in the repositories...

Code: Select all

# apt update && apt upgrade -y
Gotta be root though
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: How to update installed software?

Post by MichaIng »

Hmm, not sure where YaSSL updates come from. MariaDB and OpenSSL are updated via APT, which is upgraded on dietpi-update as well.

I guess you did a reboot to have perhaps system internal links updated and such?

Will investigate.
PiOSFan
Posts: 12
Joined: Mon Dec 05, 2016 8:36 am

Re: How to update installed software? [solved]

Post by PiOSFan »

Hi Micha, hi WarHawk,

Thanks for your support. I did the

Code: Select all

apt update
and

Code: Select all

apt list --upgradable
showed the update on MariaDB, so i did

Code: Select all

apt upgrade
and a restart.
The YaSSL is now on 2.4.4. on both machines.

Have a good weekend.
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: How to update installed software?

Post by WarHawk »

Cool cool..just gotta be root, or use the sudo

Remember it is VERY dangerous to poke around a linux system as root if you don't know what you are doing
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: How to update installed software?

Post by MichaIng »

Ah okay, strange that on your earlier post, both MariaDB instances showed the same package version string but different yaSSL versions. Good that it resolved itself now.
PiOSFan
Posts: 12
Joined: Mon Dec 05, 2016 8:36 am

Re: [Solved] How to update installed software?

Post by PiOSFan »

Root comes out of the box 8)
You are right, but to reduce access rights to the necessary level without knowing how to do it and then solving all kinds of issues due to missing access rights will leave most newbies with root and standard passwords.

@Micha: I guess I just restarted the MariaDB service, not the Raspi when I posted the result.
In the meantime I did a reboot.
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: [Solved] How to update installed software?

Post by MichaIng »

Perhaps the reboot was required to reload the new yaSSL library, e.g. ldconfig would be otherwise the command to do so, but not 100% sure in this case, where library might be installed not system wide but included in MariaDB.
Post Reply