How to configure password history limit for Oracle Linux 8
Found the document How to Prevent Users From Repeating Last N Passwords When Changing the Password in Oracle Linux (Doc ID 2823470.1)
The content is as follow:
Modify the file /etc/pam.d/system-auth so that it includes the PAM module pam_pwhistory after the existing occurrences of the password requisite line:
...
password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type=
password requisite pam_pwhistory.so use_authtok enforce_for_root remember=5
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password required pam_deny.so
...
However, in Oracle Linux 8, there is a comment in /etc/pam.d/system-auth stated