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 17:33]
miquel [Paquets addicionals]
informatica:hp_z400_600_centos7_2 [2021/08/06 11:40]
miquel [Paquets addicionals]
Line 255: Line 255:
   * Generació del llistat: ''rpm -qa | sort > pkglist.txt''   * Generació del llistat: ''rpm -qa | sort > pkglist.txt''
   * Processament del llistat:   * Processament del llistat:
-    * ''yum install $(cat /root/pkglist.txt | xargs)'' +    * ''yum -y install $(cat 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: Per precaució, es pot fer un simulacre per veure quins paquets s'instal·larien:
Line 263: Line 262:
   * ''yum -y install %%--%%setopt tsflags=test ... ''   * ''yum -y install %%--%%setopt tsflags=test ... ''
  
-tal 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 while yum progress installation is ok.]]+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 pluginsfastestmirror, 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> 
 + 
 ==== Enllaços d'interès ==== ==== Enllaços d'interès ====
  
Line 270: 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