RP#31 Update後の再起動要否を確認する | 作業ログの部屋

作業ログの部屋

いろいろな作業ログを公開。何かの時に便利・・・かも。メモ代わりに。

参考: 

 

 

 

 

Update後に再起動の必要有無は教えてくれません。Windowsは教えてくれるのに。

 

なので?要否を確認するコマンドがあるようです。

 

■Almalinuxでは、

これは、RHEL系だけなのかな?Ubuntu系はどうなんでしょう?あとで調べます。ひとまずコマンドは、

 

needs-restarting

 

ただ、標準では入っていなこともあるようで、Almalinuxには入っていませんでした。

使うためには、yum-utils パッケージをインストールする必要があるようです。

 

インストールは、

[pi@almalinux9 ~]$ sudo dnf install yum-utils

Last metadata expiration check: 3:44:59 ago on Sat Jul 15 03:11:31 2023.
Dependencies resolved.
================================================================================
 Package           Architecture   Version                  Repository      Size
================================================================================
Installing:
yum-utils        noarch         4.3.0-5.el9_2            baseos          35 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 35 k
Installed size: 23 k
Is this ok [y/N]: y
Downloading Packages:
                         [===                 ] ---  B/s |   0  B     --:-- ETA
                         [===                 ] ---  B/s |   0  B     --:-- ETA
                         [   ===              ] ---  B/s |   0  B     --:-- ETA
yum-utils-4.3.0-5.el  0% [                    ] ---  B/s |   0  B     --:-- ETA
yum-utils-4.3.0-5.el9_2.noarch.rpm               42 kB/s |  35 kB     00:00    
--------------------------------------------------------------------------------
Total                                            18 kB/s |  35 kB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction

  Installing       : yum-utils-4.3.0-5.el9_2.noarch                         1/1 
  Running scriptlet: yum-utils-4.3.0-5.el9_2.noarch                         1/1 
  Verifying        : yum-utils-4.3.0-5.el9_2.noarch                         1/1 

Installed:
  yum-utils-4.3.0-5.el9_2.noarch

Complete!

 

実行は、

[pi@almalinux9 ~]$ sudo needs-restarting -r
Core libraries or services have been updated since boot-up:
  * dbus
  * dbus-broker
  * glibc
  * linux-firmware
  * systemd


Reboot is required to fully utilize these updates.
More information: https://access.redhat.com/solutions/27943

 

再起動(sudo reboot)して解消!のばすが、再確認したけど、状況が変わらない。なんだろう・・。

 

[pi@almalinux9 ~]$ sudo dnf clean all
[sudo] password for pi:
36 files removed
[pi@almalinux9 ~]$ sudo dnf update
AlmaLinux 9 - AppStream                         1.1 MB/s | 8.0 MB     00:07
AlmaLinux 9 - BaseOS                            724 kB/s | 3.6 MB     00:05
AlmaLinux 9 - Extras                            4.7 kB/s |  17 kB     00:03
AlmaLinux 9 - Raspberry Pi                      232 kB/s | 766 kB     00:03
Last metadata expiration check: 0:00:02 ago on Sat Jul 15 07:47:44 2023.
Dependencies resolved.
Nothing to do.
Complete!
[pi@almalinux9 ~]$ sudo needs-restarting -r
Core libraries or services have been updated since boot-up:
  * dbus
  * dbus-broker
  * glibc
  * linux-firmware
  * systemd

Reboot is required to fully utilize these updates.
More information: https://access.redhat.com/solutions/27943

 

んーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー。

再起動によって何かが更新されないことによって、needs-restartingが、正しく判断できてないのかな?needs-restartingがバグっているのかな?

 

Imageから焼いて一からやり直してみたけど、やっぱりダメだった。いったん、あきらめます。

 

■ラズパイOSは?

参考: 

 

 

 

別のアプリケーションがあるようです。