Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:rhel [2020/05/15 11:23] – [PATCH] tmadelinux:rhel [2024/03/27 08:25] (current) – [Register] tmade
Line 24: Line 24:
   zypper dist-upgrade   zypper dist-upgrade
   zypper clean -a   zypper clean -a
 +  rpm -qa --last                                          #shows last applied packages
      
-=== Systeminfo ===+====rpm database broken==== 
 + 
 +To solve a broken rpm-database: 
 + 
 +  yum info expat 
 +  mkdir /var/lib/rpm/backup 
 +  cp -a /var/lib/rpm/__db* /var/lib/rpm/backup/ 
 +  rm -f /var/lib/rpm/__db.[0-9][0-9]* 
 +  rpm --quiet -qa 
 +  rpm --rebuilddb 
 +  yum clean all 
 +  yum info expat 
 +  rm -rf /var/lib/rpm/backup 
 +or 
 +  mv /var/lib/rpm/__db* /tmp/ 
 +  rpm --rebuilddb 
 +  yum clean all 
 +   
 +==== Systeminfo ====
  
   lsb_release -d                                          #>= RHEL7   lsb_release -d                                          #>= RHEL7
   cat /etc/redhat-release                                 #<= RHEL6   cat /etc/redhat-release                                 #<= RHEL6
      
-=== Search & Install ===+==== Search & Install ====
  
   yum search package   yum search package
   yum search all package   yum search all package
   yum list java*                                                                                                       #search versions, getting also repos which contain the package   yum list java*                                                                                                       #search versions, getting also repos which contain the package
 +  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=/tmp kernel-debuginfo glibc-langpack-de-2.28-225.el8.x86_64.rpm
   pkcon search name package                                                                                            #shows all available versions of a package   pkcon search name package                                                                                            #shows all available versions of a package
  
-=== Satellite ===+==== Satellite ====
  
   /etc/init.d/taskomatic restart    /etc/init.d/taskomatic restart 
Line 202: Line 224:
   subscription-manager register --username user@test.de --password mysecret   subscription-manager register --username user@test.de --password mysecret
   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 /usr/share/pki/ca-trust-source/anchors/ or /etc/pki/ca-trust/source/anchors/ directory. To update the system-wide trust store configuration, use the update-ca-trust command, for example: 
 +
 +  cp ~/certificate-trust-examples/Cert-trust-test-ca.pem /usr/share/pki/ca-trust-source/anchors/
 +  update-ca-trust
      
  
  
  
linux/rhel.1589534595.txt.gz · Last modified: 2020/05/15 11:23 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki