CentOS
#Linux #保守
保守
カーネル除外する場合
yum update --exclude=kernel*
needs-restarting -s
再起動が必要なサービスを確認
needs-restarting -r
OSレベルでの再起動が必要なサービスを確認する
man
https://man7.org/linux/man-pages/man1/needs-restarting.1.html
参考
Linuxのパッケージをアップデートしたあとrestartが必要なプロセスを見つける方法 - Qiita
Which packages require a system reboot after the update? - Red Hat Customer Portal
------
package-cleanup
https://www.nslabs.jp/linux-package-cleanup-to-dnf.rhtml
yum reference
https://access.redhat.com/articles/yum-cheat-sheet
centos6
パッケージリポジトリを変更する。
/etc/yum.repos.d/CentOS-CR.repo
/etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
サポート切れのため、baseurlを以下に変更する。
http://mirrorlist.centos.org → http://vault.centos.org
----
AWS AMI
Cloud/AWS - CentOS Wiki
AMI IDはここで参照できる。
参考
RHEL/CentOSから標準より新しいパッケージをインストールするためのレポジトリ4選
epel
CentOS 8 と CentOS 7 の違い、yum やミドルウェアにも要注意 - サーバー構築と設定 ~初心者にも分かりやすく解説~