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 [2019/11/29 10:46] – [PATCH] tmadelinux:rhel [2024/03/15 10:53] (current) – [Search & Install] tmade
Line 3: Line 3:
 ====PATCH==== ====PATCH====
  
-  yum repolist all +  yum repolist all                                        #List all repos 
-  yum repolist all |grep enabled+  /etc/yum.repos.d                                        #Repo folder 
 +  yum repolist all |grep enabled                          #List active repos
   yum repolist   yum repolist
   yum makecache    yum makecache 
Line 23: 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+  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 
linux/rhel.1575020812.txt.gz · Last modified: 2019/11/29 10:46 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