I am trying to update my pi3's systemd version from 215 to the newest build. Does anyone know is this is possible or not? Thank you.
2 Answers
The newest build should be included in one of the repositories. Let's suppose that you are using a raspbian system. First you need to update before getting the upgrade.
sudo apt-get update
If you only want to upgrade your systemd version to the compiled newer one available just select it:
sudo apt-get upgrade systemd
-
1@Zotto For systemd, it should be
sudo apt-get upgrade systemd
. Commented May 24, 2017 at 20:30 -
1Sorry, my bad head and writing fast . Thank you for your correction Commented May 24, 2017 at 20:31
-
-
That is because no higher version of systemd is available in the repositories, compiled for ARM. You can wait until a stable and tested version is ready, or you can try to compile yourself ones, but is a little risky if you are not too experienced Commented May 24, 2017 at 21:02
Yes, It Is Possible
While the current version of systemd
in Raspbian Stable (Jessie) is 215-17+deb8u7
, there are ways to get newer versions.
Testing Repository (Stretch), Unstable Repository (Sid)
A later version might be available in either the repository for Raspbian Testing (Stretch) or Raspbian Unstable (Sid). Be aware that the newer software is more likely to be less stable:
Older (More Stable) <----------------> Newer (Less Stable)
Jessie (Stable) .... Stretch (Testing) .... Sid (Unstable)
You'll have to enable these repository manually. This stackexchange answer looks promising.
Third Party Repository
If the testing version is still too old, there's a chance that some third party offers a newer, compiled and packaged version of systemd
for Raspbian Jessie. You'll have to search the Internet for this.
Be cautious: Like any other software you download from random places on the Internet, there's a chance to get malware on your Pi this way, though I have not heard of such incidents.
Compile From Source
Failing the above, you can compile systemd
from the source code yourself, which is probably quite an involved process.
Good luck!
-
I am not the most experienced person with the raspberry pi, for the testing repo (Sid), what is that stackexchange post talking about exactly? what is he upgrading?– ZottoCommented May 24, 2017 at 20:32
-
1'Sid' is unstable, not testing; testing is currently 'stretch'. I'm not sure that Raspbian actually keeps the former, but in any case, if you are new to the OS I strongly recommend you do not use sid or stretch for systemd.– goldilocks ♦Commented May 24, 2017 at 20:38
-
@goldilocks You are totally right. I don't usually stray from stable so I didn't recall all the details correctly. I've updated my answer now. Commented May 24, 2017 at 20:55
-
1These are all technically valid options, but are asking for trouble. They might work, but the rest of the packages on Jessie have been tested with systemd 215. If run an unsupported systemd version, you could be trying package combinations that have been lightly tested or never tested together, and people will be less able and willing to offer you help since you would be running an unsupported combination of packages-- if it even works for you. Commented May 25, 2017 at 0:33
systemd
.