User Tools

Site Tools


informatica:hp_z400_600_centos7_2

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
informatica:hp_z400_600_centos7_2 [2021/08/05 16:19]
miquel [Paquets addicionals]
informatica:hp_z400_600_centos7_2 [2021/08/06 11:20]
miquel [Enllaços d'interès]
Line 238: Line 238:
 <wrap alert>**No funciona**</wrap> Quart parell de comandes per CentOS & CentOS: <wrap alert>**No funciona**</wrap> Quart parell de comandes per CentOS & CentOS:
  
-  * Generació del llistat: ''rpm -qa --queryformat "%{NAME}\n" > yum.packages.list''+  * Generació del llistat: ''rpm -qa %%--%%queryformat "%{NAME}\n" > yum.packages.list''
   * Processament del llistat: ''yum -y install < yum-packages.list''   * Processament del llistat: ''yum -y install < yum-packages.list''
   * Font: [[http://www.pwrusr.com/system-administration/clone-installed-packages-between-different-centos-versions | Clone installed packages between different CentOS versions.]]   * Font: [[http://www.pwrusr.com/system-administration/clone-installed-packages-between-different-centos-versions | Clone installed packages between different CentOS versions.]]
Line 249: Line 249:
   * Font: [[https://ostechnix.com/create-list-installed-packages-install-later-list-centos-ubuntu/ | Create A List Of Installed Packages And Install Them Later From The List In CentOS And Ubuntu.]]   * Font: [[https://ostechnix.com/create-list-installed-packages-install-later-list-centos-ubuntu/ | Create A List Of Installed Packages And Install Them Later From The List In CentOS And Ubuntu.]]
  
 +La conclusió final és que els mètodes que fan servir la comanda ''rmp -qa'' generen un llistat que ''yum install'' pot processar, mentre que la comanda ''yum list installed'' genera una taula que s'ha de processar per obtenir un llistat acceptable per ''yum install''.
  
 +El mètode triat és:
  
 +  * Generació del llistat: ''rpm -qa | sort > pkglist.txt''
 +  * Processament del llistat:
 +    * ''yum install $(cat /root/pkglist.txt | xargs)''
 +    * ''yum -y install $(cat /home/user/installed-software.log)''
  
 +Per precaució, es pot fer un simulacre per veure quins paquets s'instal·larien:
 +
 +  * ''yum install yum-downloadonly ... ''
 +  * ''yum -y install %%--%%setopt tsflags=test ... ''
 +
 +tal i com es descriu a [[https://ostechnix.com/how-to-simulate-linux-commands-without-changing-anything-in-the-system/ | How To Simulate Linux Commands Without Changing Anything In The System]] i a [[https://unix.stackexchange.com/questions/617417/why-yum-update-assumeno-return-exit-code-1-while-yum-progress-installation-is | why yum update --assumeno return exit code 1 while yum progress installation is ok.]]
 ==== Enllaços d'interès ==== ==== Enllaços d'interès ====
  
Line 258: Line 270:
   * [[https://ostechnix.com/create-list-installed-packages-install-later-list-centos-ubuntu/ | Create A List Of Installed Packages And Install Them Later From The List]]   * [[https://ostechnix.com/create-list-installed-packages-install-later-list-centos-ubuntu/ | Create A List Of Installed Packages And Install Them Later From The List]]
   * [[https://www.google.com/search?q=replicate+centos+using+yum | Cerca "replicate centos using yum" a Google]]   * [[https://www.google.com/search?q=replicate+centos+using+yum | Cerca "replicate centos using yum" a Google]]
 +  * [[https://ostechnix.com/how-to-simulate-linux-commands-without-changing-anything-in-the-system/ | How To Simulate Linux Commands Without Changing Anything In The System]] 
 +  * [[https://unix.stackexchange.com/questions/617417/why-yum-update-assumeno-return-exit-code-1-while-yum-progress-installation-is | why yum update --assumeno return exit code 1 while yum progress installation is ok.]] 
 +  * [[https://community.spiceworks.com/topic/2122771-how-to-log-yum-update-checks-even-when-no-packages-are-installed-or-updated | How to log yum update checks even when no packages are installed or updated.]] 
 +  * [[https://forums.fedoraforum.org/showthread.php?180597-Direct-YUM-output-to-screen-and-file-simultaneously | Direct YUM output to screen and file simultaneously?]]
  
  
  
informatica/hp_z400_600_centos7_2.txt · Last modified: 2021/08/10 09:44 by miquel