AlmaLinux

Restrict a Package to a Fixed Version

sudo yum install python3-dnf-plugin-versionlock
sudo yum versionlock gcc-*

List all locks

sudo yum versionlock list

Clear locks

sudo yum versionlock clear

Remove a lock

sudo yum versionlock delete gcc-*

Enable NTP Sync

Install systemd-timesyncd

sudo dnf install systemd-timesyncd
sudo timedatectl set-ntp true

Add your NTP server

/etc/systemd/timesyncd.conf

[Time]
NTP=time.cloudflare.com

Enable and start the service

sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd

To verify if the time sync is enabled

sudo timedatectl timesync-status

To verify if the time is in sync

sudo timedatectl

Change Hostname

Change hostname between restarts

sudo hostnamectl set-hostname [HOST]

Change the hostname, before the restart

sudo hostnamectl --transient set-hostname [HOST]

Change the hostname on the hosts file

sudo vim /etc/hosts