This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:rhel [2020/05/15 11:23] – [PATCH] tmade | linux:rhel [2025/11/17 12:24] (current) – [chronyd] tmade | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| zypper dist-upgrade | zypper dist-upgrade | ||
| zypper clean -a | zypper clean -a | ||
| + | rpm -qa --last | ||
| | | ||
| - | === Systeminfo === | + | ====rpm database broken==== |
| + | |||
| + | To solve a broken rpm-database: | ||
| + | |||
| + | yum info expat | ||
| + | mkdir / | ||
| + | cp -a / | ||
| + | rm -f / | ||
| + | rpm --quiet -qa | ||
| + | rpm --rebuilddb | ||
| + | yum clean all | ||
| + | yum info expat | ||
| + | rm -rf / | ||
| + | or | ||
| + | mv / | ||
| + | rpm --rebuilddb | ||
| + | yum clean all | ||
| + | |||
| + | ==== Systeminfo | ||
| lsb_release -d #>= RHEL7 | lsb_release -d #>= RHEL7 | ||
| cat / | cat / | ||
| | | ||
| - | === Search & Install === | + | ==== Search & Install |
| yum search package | yum search package | ||
| yum search all package | yum search all package | ||
| yum list java* # | yum list java* # | ||
| + | yum list java-1.8.0-ibm* | ||
| yum reinstall package | yum reinstall package | ||
| yum install package | yum install package | ||
| + | yum erase httpd httpd-tools | ||
| yum -y --nogpgcheck install nrpe nagios-plugins-disk nagios-plugins-load nagios-plugins-swap nagios-plugins-procs | yum -y --nogpgcheck install nrpe nagios-plugins-disk nagios-plugins-load nagios-plugins-swap nagios-plugins-procs | ||
| + | yum reinstall --downloadonly --downloaddir=/ | ||
| pkcon search name package | pkcon search name package | ||
| - | === Satellite === | + | ==== Satellite |
| / | / | ||
| Line 72: | Line 94: | ||
| Open http(s): | Open http(s): | ||
| - | firewall-cmd --zone=public --add-service=http --permanent | + | firewall-cmd --zone=public --add-service=http --permanent |
| - | firewall-cmd --zone=public --add-service=https --permanent | + | firewall-cmd --zone=public --add-service=https --permanent |
| + | firewall-cmd --permanent --zone=public --add-port=8433/ | ||
| + | firewall-cmd --zone=public --add-port=8080/ | ||
| + | |||
| + | Check: | ||
| + | |||
| + | firewall-cmd --list-ports | ||
| + | firewall-cmd --list-all-zones | ||
| | | ||
| Activate: | Activate: | ||
| Line 203: | Line 232: | ||
| subscription-manager attach --auto | subscription-manager attach --auto | ||
| | | ||
| + | ====Certificate==== | ||
| + | |||
| + | To add a certificate in the simple PEM or DER file formats to the list of CAs trusted on the system, copy the certificate file to the / | ||
| + | |||
| + | cp ~/ | ||
| + | update-ca-trust | ||
| + | | ||
| + | ====chronyd ==== | ||
| + | |||
| + | Check: | ||
| + | |||
| + | chronyc tracking | ||
| + | chronyc sources | ||
| + | chronyc -n sourcestats | ||
| + | chronyc sourcestats | ||
| + | | ||
| + | Service: | ||
| + | |||
| + | systemctl status chronyd.service | ||
| + | | ||
| + | Sync oneshot: | ||
| + | |||
| + | chronyd -q ' | ||
| + | | ||
| + | ====dnf==== | ||
| + | |||
| + | If you use dnf behind a proxy, the download takes longer and dnf runns into a timeout. To fix ist add " | ||
| + | timeout=3000 | ||