3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Rocky Linux 9】01.初期設定

Posted at

パッケージ管理システム(dnf)設定

EPELインストール

dnf install epel-release
dnf clean all

EPEL設定

EPELを使用すると明示しないとEPELパッケージを取得しないようにする

/etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch/
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
- enabled=1
+ enabled=0
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$releasever

インストール済パッケージの一括アップデート

dnf -y update

ベース・開発ツールパッケージ群インストール

dnf -y groupinstall base "Development tools"

dnf-automaticインストール

dnf -y install dnf-automatic

dnf-automatic設定ファイル編集

/etc/dnf/automatic.conf
# Whether updates should be applied when they are available, by
# dnf-automatic.timer. notifyonly.timer, download.timer and
# install.timer override this setting.
- apply_updates = no
+ apply_updates = yes

dnf-automatic起動・自動起動

systemctl enable --now dnf-automatic-install.timer

SELinuxの無効化

/etc/sysconfig/selinux
SELINUX=disabled

SELINUXが「enforcing」になっており、これを「disabled」に変更した場合は、システムの再起動が必要となる。

不要パッケージの削除

Cockpit削除

dnf remove cockpit

参考サイト

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?