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:40]
miquel [Paquets addicionals]
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 -y install $(cat pkglist.txt | xargs)''
 +
 +Per precaució, es pot fer un simulacre per veure quins paquets s'instal·larien:
 +
 +  * ''yum install yum-downloadonly ... ''
 +  * ''yum -y install %%--%%setopt tsflags=test ... ''
 +
 +i es pot registrar l'activitat amb la comanda ''script''
 +
 +  * comanda no interactiva: ''script -c "yum -y install..." yum-install-output.log''
 +  * comanda interactiva: ''script \n yum -y install...  \n exit''
 +
 +En aquest cas,
 +
 +<file>
 +# script yum-install-output.log
 +Script started, file is yum-install-output.log
 +# yum -y install $(cat avance-neo-500-pkglist.txt | xargs)
 +Loaded plugins: fastestmirror, langpacks
 +Loading mirror speeds from cached hostfile
 +epel/x86_64/metalink                                                                            35 kB  00:00:00     
 + * base: ftp.csuc.cat
 + * elrepo: mirrors.coreix.net
 + * epel: pkg.adfinis.com
 + * extras: ftp.csuc.cat
 + * updates: ftp.csuc.cat
 +base                                                                                           | 3.6 kB  00:00:00     
 +bruker                                                                                         | 2.9 kB  00:00:00     
 +elrepo                                                                                         | 3.0 kB  00:00:00     
 +extras                                                                                         | 2.9 kB  00:00:00     
 +updates                                                                                        | 2.9 kB  00:00:00     
 +updates/7/x86_64/primary_db                                                                    | 9.5 MB  00:00:00     
 +Package abattis-cantarell-fonts-0.0.25-1.el7.noarch already installed and latest version
 +Package abrt-2.1.11-60.el7.centos.x86_64 already installed and latest version
 +
 +[...]
 +
 +Package zip-3.0-11.el7.x86_64 already installed and latest version
 +Package zlib-1.2.7-19.el7_9.x86_64 already installed and latest version
 +Resolving Dependencies
 +--> Running transaction check
 +---> Package ImageMagick.x86_64 0:6.9.10.68-5.el7_9 will be installed
 +---> Package NetworkManager-bluetooth.x86_64 1:1.18.8-2.el7_9 will be installed
 +---> Package NetworkManager-wwan.x86_64 1:1.18.8-2.el7_9 will be installed
 +
 +[...]
 +
 +
 +
 +</file>
  
  
Line 258: Line 313:
   * [[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?]] 
 +  * [[https://www.geeksforgeeks.org/script-command-in-linux-with-examples/ | script command in Linux with Examples]] 
 +  * [[https://www.computerhope.com/unix/uscript.htm | Linux script command]]
  
  
  
informatica/hp_z400_600_centos7_2.txt · Last modified: 2021/08/10 09:44 by miquel