Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.25 KB | None | 0 0
  1. [root@localhost ~]# date
  2. Thu Jan 19 07:52:05 EST 2017
  3. [root@localhost ~]# yum -y remove SyncGEM
  4. Loaded plugins: fastestmirror
  5. Setting up Remove Process
  6. Resolving Dependencies
  7. --> Running transaction check
  8. ---> Package SyncGEM.i686 0:2.0.20170117-1.el6 will be erased
  9. --> Finished Dependency Resolution
  10.  
  11. Dependencies Resolved
  12.  
  13. ==================================================================================================================================================
  14. Package Arch Version Repository Size
  15. ==================================================================================================================================================
  16. Removing:
  17. SyncGEM i686 2.0.20170117-1.el6 @/SyncGEM-2.0.20170117-1.el6.i686 27 M
  18.  
  19. Transaction Summary
  20. ==================================================================================================================================================
  21. Remove 1 Package(s)
  22.  
  23. Installed size: 27 M
  24. Downloading Packages:
  25. Running rpm_check_debug
  26. Running Transaction Test
  27. Transaction Test Succeeded
  28. Running Transaction
  29. Erasing : SyncGEM-2.0.20170117-1.el6.i686 1/1
  30. Verifying : SyncGEM-2.0.20170117-1.el6.i686 1/1
  31.  
  32. Removed:
  33. SyncGEM.i686 0:2.0.20170117-1.el6
  34.  
  35. Complete!
  36. [root@localhost ~]# mysql -e "DROP SCHEMA syncgem"
  37. [root@localhost ~]# yum -y install SyncGEM-1.4.00-1.el6.i686.rpm
  38. Loaded plugins: fastestmirror
  39. Setting up Install Process
  40. Examining SyncGEM-1.4.00-1.el6.i686.rpm: SyncGEM-1.4.00-1.el6.i686
  41. Marking SyncGEM-1.4.00-1.el6.i686.rpm to be installed
  42. Loading mirror speeds from cached hostfile
  43. * base: mirrors.vooservers.com
  44. * epel: mirrors.ukfast.co.uk
  45. * extras: mirrors.vooservers.com
  46. * updates: mirror.as29550.net
  47. Resolving Dependencies
  48. --> Running transaction check
  49. ---> Package SyncGEM.i686 0:1.4.00-1.el6 will be installed
  50. --> Finished Dependency Resolution
  51.  
  52. Dependencies Resolved
  53.  
  54. ==================================================================================================================================================
  55. Package Arch Version Repository Size
  56. ==================================================================================================================================================
  57. Installing:
  58. SyncGEM i686 1.4.00-1.el6 /SyncGEM-1.4.00-1.el6.i686 37 M
  59.  
  60. Transaction Summary
  61. ==================================================================================================================================================
  62. Install 1 Package(s)
  63.  
  64. Total size: 37 M
  65. Installed size: 37 M
  66. Downloading Packages:
  67. Running rpm_check_debug
  68. Running Transaction Test
  69. Transaction Test Succeeded
  70. Running Transaction
  71. Installing : SyncGEM-1.4.00-1.el6.i686 1/1
  72. Converting SyncGEM v1.1 metrics log files to new format...
  73. Configuring SELinux...
  74. checkmodule: loading policy configuration from /var/tmp/syncgem-gui-selinux-module.te
  75. checkmodule: policy configuration loaded
  76. checkmodule: writing binary representation (version 10) to /var/tmp/syncgem-gui-selinux-module.mod
  77. Configuring services...
  78. INFO: No database configuration file given, looking for file: /var/syncgem/db.conf
  79. INFO: No database schema file given, looking for file: /usr/share/syncgem/db-schema.sql
  80. INFO: Database 'syncgem' does not exist. Attempting to create database now.
  81. INFO: Creating database 'syncgem' was successful
  82. Verifying : SyncGEM-1.4.00-1.el6.i686 1/1
  83.  
  84. Installed:
  85. SyncGEM.i686 0:1.4.00-1.el6
  86.  
  87. Complete!
  88. [root@localhost ~]# yum -y update SyncGEM-2.0.20170117-1.el6.i686.rpm
  89. Loaded plugins: fastestmirror
  90. Setting up Update Process
  91. Examining SyncGEM-2.0.20170117-1.el6.i686.rpm: SyncGEM-2.0.20170117-1.el6.i686
  92. Marking SyncGEM-2.0.20170117-1.el6.i686.rpm as an update to SyncGEM-1.4.00-1.el6.i686
  93. Loading mirror speeds from cached hostfile
  94. * base: mirrors.vooservers.com
  95. * epel: mirrors.ukfast.co.uk
  96. * extras: mirrors.vooservers.com
  97. * updates: mirror.as29550.net
  98. Resolving Dependencies
  99. --> Running transaction check
  100. ---> Package SyncGEM.i686 0:1.4.00-1.el6 will be updated
  101. ---> Package SyncGEM.i686 0:2.0.20170117-1.el6 will be an update
  102. --> Finished Dependency Resolution
  103.  
  104. Dependencies Resolved
  105.  
  106. ==================================================================================================================================================
  107. Package Arch Version Repository Size
  108. ==================================================================================================================================================
  109. Updating:
  110. SyncGEM i686 2.0.20170117-1.el6 /SyncGEM-2.0.20170117-1.el6.i686 27 M
  111.  
  112. Transaction Summary
  113. ==================================================================================================================================================
  114. Upgrade 1 Package(s)
  115.  
  116. Total size: 27 M
  117. Downloading Packages:
  118. Running rpm_check_debug
  119. Running Transaction Test
  120. Transaction Test Succeeded
  121. Running Transaction
  122. Updating : SyncGEM-2.0.20170117-1.el6.i686 1/2
  123. Configuring SELinux...
  124. INFO: Found an existing policy named 'syncgem'. It will be overwritten.
  125. checkmodule: loading policy configuration from /var/tmp/syncgem-gui-selinux-module/syncgem.te
  126. checkmodule: policy configuration loaded
  127. checkmodule: writing binary representation (version 10) to /var/tmp/syncgem-gui-selinux-module/syncgem.mod
  128. Configuring services...
  129. Cleanup : SyncGEM-1.4.00-1.el6.i686 2/2
  130. Configuring database...
  131. INFO: No database configuration file given, looking for default: /var/syncgem/db.conf
  132. INFO: No database schema filepath given, looking for default: /usr/share/syncgem
  133. INFO: Database 'syncgem' exists! Found version: 1.4.00 (GA Release)
  134. WARNING: Attempting to upgrade/downgrade to an alpha or beta build: 2.0.20170117 (GA Release)
  135. Use -f or --force to upgrade/downgrade.
  136. Please resolve issue and try again.
  137. You may run script /usr/local/bin/syncgem-update-db.sh at any time
  138. warning: %posttrans(SyncGEM-2.0.20170117-1.el6.i686) scriptlet failed, exit status 1
  139. Non-fatal POSTTRANS scriptlet failure in rpm package SyncGEM-2.0.20170117-1.el6.i686
  140. Verifying : SyncGEM-2.0.20170117-1.el6.i686 1/2
  141. Verifying : SyncGEM-1.4.00-1.el6.i686 2/2
  142.  
  143. Updated:
  144. SyncGEM.i686 0:2.0.20170117-1.el6
  145.  
  146. Complete!
  147. [root@localhost ~]# date
  148. Thu Jan 19 07:55:18 EST 2017
  149. [root@localhost ~]# syncgem-backup-database.sh
  150. INFO: No database configuration file given, looking for file: /var/syncgem/db.conf
  151. INFO: Backing-up database: 'syncgem'...
  152. INFO: Backup has completed successfully.
  153. [root@localhost ~]# ls -lastr syncgem-db-backup-20170119-07
  154. syncgem-db-backup-20170119-074508.sql syncgem-db-backup-20170119-075537.sql
  155. [root@localhost ~]# ls syncgem-db-backup-20170119-075537.sql
  156. syncgem-db-backup-20170119-075537.sql
  157. [root@localhost ~]#vi syncgem-db-backup-20170119-075537.sql
  158.  
  159. 1644 LOCK TABLES `Schema` WRITE;
  160. 1645 /*!40000 ALTER TABLE `Schema` DISABLE KEYS */;
  161. 1646 INSERT INTO `Schema` VALUES ('2017-01-19 12:54:04','1.4.00','GA Release');
  162. 1647 /*!40000 ALTER TABLE `Schema` ENABLE KEYS */;
  163. 1648 UNLOCK TABLES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement