Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.45 KB | None | 0 0
  1. [quote="dnutan, post:4, topic:13772"]
  2. history |grep 2019-10-28
  3. [/quote]
  4.  
  5. history |grep 2019-10-28
  6.  
  7. > 596 2019-10-28 15:09:13 yum update
  8. 597 2019-10-28 15:14:06 /usr/bin/yum
  9. 598 2019-10-28 15:14:41 /usr/bin/yumlocate yum
  10. 599 2019-10-28 15:14:44 locate yum
  11. 600 2019-10-28 15:14:50 yum install locate
  12. 601 2019-10-28 15:15:26 find -name yum
  13. 602 2019-10-28 15:15:32 find / -name yum
  14. 603 2019-10-28 15:15:54 /usr/lib/python2.7/site-packages/yum
  15. 604 2019-10-28 15:16:02 /usr/bin/yum/
  16. 605 2019-10-28 15:16:03 /usr/bin/yum
  17. 606 2019-10-28 15:16:18 /var/lib/machines/nsdc/var/lib/yum/
  18. 607 2019-10-28 15:16:41 whitch
  19. 608 2019-10-28 15:16:51 which
  20. 609 2019-10-28 15:16:53 which yum
  21. 610 2019-10-28 15:17:18 printenv
  22. 611 2019-10-28 15:17:59 ./usr/lib64/yum
  23. 612 2019-10-28 15:18:04 ./usr/lib64 yum
  24. 613 2019-10-28 15:18:32 rpm -q yum
  25. 614 2019-10-28 15:18:52 type -a yum
  26. 615 2019-10-28 15:19:13 /usr/bin/yum
  27. 616 2019-10-28 15:21:01 /usr/bin/yumrpm -Uvh --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rp
  28. 617 2019-10-28 15:21:02 rpm -Uvh --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
  29. 618 2019-10-28 15:21:16 rpm -Uvh --replacepkgs http://mirror.centos.org/centos/7/os/x86_64/Packages/yum-3.4.3-158.el7.centos.noarch.rpm
  30. 619 2019-10-28 15:22:39 find / -name yum
  31. 620 2019-10-28 15:22:57 cd /var/lib/machines/nsdc/etc/yum
  32. 621 2019-10-28 15:22:58 ls
  33. 622 2019-10-28 15:23:01 nano vars/
  34. 623 2019-10-28 15:23:05 cd vars/
  35. 624 2019-10-28 15:23:06 ls
  36. 625 2019-10-28 15:23:09 cd nsrelease
  37. 626 2019-10-28 15:23:12 cat nsrelease
  38. 627 2019-10-28 15:23:18 cd ..
  39. 628 2019-10-28 15:23:20 ls
  40. 629 2019-10-28 15:23:24 cd protected.d/
  41. 630 2019-10-28 15:23:24 ls
  42. 631 2019-10-28 15:23:28 cat systemd.conf
  43. 632 2019-10-28 15:23:31 cd ..
  44. 633 2019-10-28 15:23:44 nano /etc/yum/yum.conf
  45. 634 2019-10-28 15:24:18 cd vars/
  46. 635 2019-10-28 15:24:19 ls
  47. 636 2019-10-28 15:24:21 cd ..
  48. 637 2019-10-28 15:24:25 cd va
  49. 638 2019-10-28 15:24:28 cd vars/
  50. 639 2019-10-28 15:24:29 ls
  51. 640 2019-10-28 15:24:33 cat contentdir
  52. 641 2019-10-28 15:24:36 cat infra
  53. 642 2019-10-28 15:24:39 cd ..
  54. 643 2019-10-28 15:24:39 sl
  55. 644 2019-10-28 15:24:40 ls
  56. 645 2019-10-28 15:24:44 cd ..
  57. 646 2019-10-28 15:24:44 ls
  58. 647 2019-10-28 15:25:00 cd /var/lib/machines/nsdc/var/lib/yum
  59. 648 2019-10-28 15:25:01 ls
  60. 649 2019-10-28 15:25:11 cat uuid
  61. 650 2019-10-28 15:27:45 yum install cockpit
  62. 651 2019-10-28 15:28:57 yum install nethserver-cockpit
  63. 652 2019-10-28 15:30:55 echo '{"action":"start","name":"collectd"}' | /usr/bin/sudo /usr/libexec/nethserver/api/system-services/update | jq
  64. 653 2019-10-28 15:32:10 nano .bashrtc
  65. 670 2019-11-03 14:14:21 history |grep 2019-10-28
  66. 676 2019-11-03 14:15:29 history |grep 2019-10-28
  67. 678 2019-11-03 14:15:35 history |grep 2019-10-28
  68.  
  69. python -V
  70.  
  71. > [root@plojhar ~]# python -V
  72. Python 2.7.14
  73.  
  74. yum history info 33
  75.  
  76. Update 3.10.0-1062.4.1.el7.x86_64 @updates
  77. Updated kernel-headers-3.10.0-1062.1.2.el7.x86_64 @updates
  78. Update 3.10.0-1062.4.1.el7.x86_64 @updates
  79. Updated kernel-tools-3.10.0-1062.1.2.el7.x86_64 @updates
  80. Update 3.10.0-1062.4.1.el7.x86_64 @updates
  81. Updated kernel-tools-libs-3.10.0-1062.1.2.el7.x86_64 @updates
  82. Update 3.10.0-1062.4.1.el7.x86_64 @updates
  83. Updated lvm2-7:2.02.185-2.el7.x86_64 @base
  84. Update 7:2.02.185-2.el7_7.2.x86_64 @updates
  85. Updated lvm2-libs-7:2.02.185-2.el7.x86_64 @base
  86. Update 7:2.02.185-2.el7_7.2.x86_64 @updates
  87. Updated microcode_ctl-2:2.1-53.el7.x86_64 @base
  88. Update 2:2.1-53.2.el7_7.x86_64 @updates
  89. Loading mirror speeds from cached hostfile
  90. * base: mirror.karneval.cz
  91. * ce-base: mirror.as29550.net
  92. * ce-extras: mirror.as29550.net
  93. * ce-sclo-rh: mirror.as29550.net
  94. * ce-sclo-sclo: mirror.as29550.net
  95. * ce-updates: mirror.as29550.net
  96. * epel: mirror.karneval.cz
  97. * extras: mirror.karneval.cz
  98. * nethforge: nethserver.interlin.nl
  99. * nethserver-base: nethserver.interlin.nl
  100. * nethserver-updates: nethserver.interlin.nl
  101. * updates: mirror.karneval.cz
  102. Updated ncpa-2.1.9-1.el8.x86_64 @?nagios-base
  103. Update 2.2.0-1.el8.x86_64 @nagios-base
  104. Updated nethserver-subscription-3.4.1-1.ns7.noarch @nethserver-updates
  105. Update 3.5.1-1.ns7.noarch @nethserver-updates
  106. Dep-Install nethserver-subscription-inventory-3.5.1-1.ns7.x86_64 @nethserver-updates
  107. Updated nethserver-subscription-ui-3.4.1-1.ns7.noarch @nethserver-updates
  108. Update 3.5.1-1.ns7.noarch @nethserver-updates
  109. Updated patch-2.7.1-11.el7.x86_64 @base
  110. Update 2.7.1-12.el7_7.x86_64 @updates
  111. Updated procps-ng-3.3.10-26.el7.x86_64 @base
  112. Update 3.3.10-26.el7_7.1.x86_64 @updates
  113. Updated python-firewall-0.6.3-2.el7_7.1.noarch @updates
  114. Update 0.6.3-2.el7_7.2.noarch @updates
  115. Updated python-perf-3.10.0-1062.1.2.el7.x86_64 @updates
  116. Update 3.10.0-1062.4.1.el7.x86_64 @updates
  117. Updated python-requests-2.6.0-5.el7.noarch @base
  118. Update 2.6.0-7.el7_7.noarch @updates
  119. Updated python2-acme-0.38.0-1.el7.noarch @epel
  120. Update 0.39.0-1.el7.noarch @epel
  121. Updated python2-certbot-0.38.0-1.el7.noarch @epel
  122. Update 0.39.0-1.el7.noarch @epel
  123. Updated rsyslog-8.24.0-41.el7_7.x86_64 @updates
  124. Update 8.24.0-41.el7_7.2.x86_64 @updates
  125. Updated systemd-219-67.el7_7.1.x86_64 @updates
  126. Update 219-67.el7_7.2.x86_64 @updates
  127. Updated systemd-libs-219-67.el7_7.1.x86_64 @updates
  128. Update 219-67.el7_7.2.x86_64 @updates
  129. Updated systemd-sysv-219-67.el7_7.1.x86_64 @updates
  130. Update 219-67.el7_7.2.x86_64 @updates
  131. Scriptlet output:
  132. 1 warning: file /lib/modules/3.10.0-957.10.1.el7.x86_64/updates: remove failed: No such file or directory
  133. 2 Error! echo
  134. 3 Your kernel headers for kernel 3.10.0-1062.4.1.el7.x86_64 cannot be found at
  135. 4 /lib/modules/3.10.0-1062.4.1.el7.x86_64/build or /lib/modules/3.10.0-1062.4.1.el7.x86_64/source.
  136. history info
  137.  
  138. yum history info 34
  139.  
  140. [root@plojhar ~]# yum history info 34
  141. Loaded plugins: changelog, fastestmirror, nethserver_events
  142. Transaction ID : 34
  143. Begin time : Mon Oct 28 15:08:00 2019
  144. Begin rpmdb : 698:da22a2655838a294a4f4a49971e81a1579cfcbe3
  145. End time : 15:08:13 2019 (13 seconds)
  146. End rpmdb : 698:74a79005894d798f1257ca307d2108d0f2b955db
  147. User : root <root>
  148. Return-Code : Success
  149. Command Line : install -y LINK/nethserver-release-7.rpm
  150. Transaction performed with:
  151. Installed rpm-4.11.3-40.el7.x86_64 @base
  152. Installed yum-3.4.3-163.el7.centos.noarch @base
  153. Installed yum-plugin-fastestmirror-1.1.31-52.el7.noarch @base
  154. Packages Altered:
  155. Updated nethserver-release-7-13.ns7.noarch @nethserver-updates
  156. Update 7-15.ns7.noarch @/nethserver-release-7
  157. history info
  158.  
  159.  
  160. yum history info 35
  161.  
  162. [root@plojhar ~]# yum history info 35
  163. Loaded plugins: changelog, fastestmirror, nethserver_events
  164. Transaction ID : 35
  165. Begin time : Mon Oct 28 15:09:22 2019
  166. Begin rpmdb : 698:74a79005894d798f1257ca307d2108d0f2b955db
  167. End time : 15:11:04 2019 (102 seconds)
  168. End rpmdb : 702:2150b22d0fa5701189f5916c788deee9bb090b3a
  169. User : root <root>
  170. Return-Code : Success
  171. Command Line : update
  172. Transaction performed with:
  173. Installed rpm-4.11.3-40.el7.x86_64 @base
  174. Installed yum-3.4.3-163.el7.centos.noarch @base
  175. Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
  176. Installed yum-plugin-fastestmirror-1.1.31-52.el7.noarch @base
  177. Packages Altered:
  178. Dep-Install conntrack-tools-1.4.4-5.el7_7.2.x86_64 @ce-updates
  179. Dep-Install libnetfilter_cthelper-1.0.0-10.el7_7.1.x86_64 @ce-updates
  180. Dep-Install libnetfilter_cttimeout-1.0.0-6.el7_7.1.x86_64 @ce-updates
  181. Dep-Install libnetfilter_queue-1.0.2-2.el7_2.x86_64 @base
  182. Updated nethserver-cockpit-lib-0.15.1-1.ns7.noarch @nethserver-updates
  183. Update 1.2.0-1.ns7.noarch @nethserver-updates
  184. Updated nethserver-dc-1.6.6-1.ns7.x86_64 @nethserver-updates
  185. Update 1.7.0-1.ns7.x86_64 @nethserver-base
  186. Updated nethserver-duc-1.6.0-1.ns7.noarch @nethserver-updates
  187. Update 1.7.0-1.ns7.noarch @nethserver-base
  188. Updated nethserver-firewall-base-3.6.6-1.ns7.noarch @nethserver-updates
  189. Update 3.7.3-1.ns7.noarch @nethserver-updates
  190. Updated nethserver-httpd-3.5.0-1.ns7.noarch @nethserver-updates
  191. Update 3.6.2-1.ns7.noarch @nethserver-updates
  192. Updated nethserver-httpd-admin-2.3.4-1.ns7.noarch @nethserver
  193. Update 2.4.0-1.ns7.noarch @nethserver-base
  194. Updated nethserver-lang-en-1.3.0-10.ns7.noarch @nethserver-updates
  195. Update 1.4.2-2.ns7.noarch @nethserver-updates
  196. Updated nethserver-mail-smarthost-2.7.3-1.ns7.noarch @nethserver-updates
  197. Update 2.8.3-1.ns7.noarch @nethserver-updates
  198. Updated nethserver-openssh-1.2.2-1.ns7.noarch @nethserver
  199. Update 1.3.0-1.ns7.noarch @nethserver-base
  200. Updated nethserver-release-7-15.ns7.noarch @/nethserver-release-7
  201. Update 7-16.ns7.noarch @nethserver-updates
  202. Updated nethserver-samba-4.3.4-1.ns7.noarch @nethserver-updates
  203. Update 4.5.0-1.ns7.noarch @nethserver-updates
  204. Updated nethserver-sssd-1.4.8-1.ns7.noarch @nethserver-updates
  205. Update 1.5.0-1.ns7.noarch @nethserver-base
  206. Updated nethserver-subscription-3.5.1-1.ns7.noarch @nethserver-updates
  207. Update 3.5.2-1.ns7.noarch @nethserver-updates
  208. Updated nethserver-subscription-inventory-3.5.1-1.ns7.x86_64 @nethserver-updates
  209. Update 3.5.2-1.ns7.x86_64 @nethserver-updates
  210. Updated nethserver-subscription-ui-3.5.1-1.ns7.noarch @nethserver-updates
  211. Update 3.5.2-1.ns7.noarch @nethserver-updates
  212. Updated nethserver-vpn-ui-1.1.0-1.ns7.noarch @nethserver-updates
  213. Update 1.2.3-1.ns7.noarch @nethserver-updates
  214. history info
  215.  
  216. yum history info 36
  217.  
  218. Dep-Install keyutils-1.5.8-3.el7.x86_64 @base
  219. Dep-Install libatasmart-0.19-6.el7.x86_64 @base
  220. Dep-Install libblockdev-2.18-4.el7.x86_64 @base
  221. Dep-Install libblockdev-crypto-2.18-4.el7.x86_64 @base
  222. Dep-Install libblockdev-fs-2.18-4.el7.x86_64 @base
  223. Dep-Install libblockdev-loop-2.18-4.el7.x86_64 @base
  224. Dep-Install libblockdev-lvm-2.18-4.el7.x86_64 @base
  225. Dep-Install libblockdev-mdraid-2.18-4.el7.x86_64 @base
  226. Dep-Install libblockdev-part-2.18-4.el7.x86_64 @base
  227. Dep-Install libblockdev-swap-2.18-4.el7.x86_64 @base
  228. Dep-Install libblockdev-utils-2.18-4.el7.x86_64 @base
  229. Dep-Install libbytesize-1.2-1.el7.x86_64 @base
  230. Dep-Install libevent-2.0.21-4.el7.x86_64 @base
  231. Dep-Install libgudev1-219-67.el7_7.2.x86_64 @ce-updates
  232. Dep-Install libmodman-2.0.1-8.el7.x86_64 @base
  233. Dep-Install libproxy-0.4.11-11.el7.x86_64 @base
  234. Dep-Install libreport-filesystem-2.1.11-43.el7.centos.x86_64 @base
  235. Dep-Install librsync-2.0.2-1.el7.x86_64 @epel
  236. Dep-Install libtirpc-0.2.4-0.16.el7.x86_64 @base
  237. Dep-Install libudisks2-2.7.3-9.el7.x86_64 @base
  238. Dep-Install libverto-tevent-0.2.5-4.el7.x86_64 @base
  239. Dep-Install libyaml-0.1.4-11.el7_0.x86_64 @base
  240. Dep-Install mdadm-4.1-1.el7.x86_64 @base
  241. Dep-Install ncftp-2:3.2.5-7.el7.x86_64 @epel
  242. Dep-Install neon-0.30.0-4.el7.x86_64 @base
  243. Dep-Install nethserver-backup-data-1.6.3-1.ns7.noarch @nethserver-base
  244. Install nethserver-cockpit-1.2.0-1.ns7.noarch @nethserver-updates
  245. Dep-Install nethserver-lang-cockpit-1.4.2-2.ns7.noarch @nethserver-updates
  246. Dep-Install nettle-2.7.1-8.el7.x86_64 @base
  247. Dep-Install nfs-utils-1:1.3.0-0.65.el7.x86_64 @base
  248. Dep-Install pakchois-0.4-10.el7.x86_64 @base
  249. Dep-Install perl-String-ShellQuote-1.04-10.el7.noarch @base
  250. Dep-Install pexpect-2.3-11.el7.noarch @base
  251. Dep-Install python-GnuPGInterface-0.3.2-11.el7.noarch @epel
  252. Dep-Install python-fasteners-0.9.0-2.el7.noarch @epel
  253. Dep-Install python-httplib2-0.9.2-1.el7.noarch @ce-extras
  254. Dep-Install python-lockfile-1:0.9.1-4.el7.centos.noarch @ce-extras
  255. Dep-Install python-paramiko-2.1.1-9.el7.noarch @base
  256. Dep-Install python-pwquality-1.2.3-5.el7.x86_64 @base
  257. Dep-Install python2-PyDrive-1.3.1-3.el7.noarch @epel
  258. Dep-Install python2-boto-2.45.0-3.el7.noarch @epel
  259. Dep-Install python2-gflags-2.0-5.el7.noarch @epel
  260. Dep-Install python2-google-api-client-1.6.3-1.el7.noarch @epel
  261. Dep-Install python2-keyring-5.0-4.el7.noarch @epel
  262. Dep-Install python2-oauth2client-4.0.0-2.el7.noarch @epel
  263. Dep-Install python2-pyasn1-modules-0.1.9-7.el7.noarch @base
  264. Dep-Install python2-rsa-3.4.1-1.el7.noarch @epel
  265. Dep-Install python2-uritemplate-3.0.0-1.el7.noarch @epel
  266. Dep-Install quota-1:4.01-19.el7.x86_64 @base
  267. Dep-Install quota-nls-1:4.01-19.el7.noarch @base
  268. Dep-Install restic-0.9.3-1.ns7.x86_64 @nethserver-base
  269. Dep-Install rpcbind-0.2.0-48.el7.x86_64 @base
  270. Dep-Install sshpass-1.06-2.el7.x86_64 @ce-extras
  271. Dep-Install tcl-1:8.5.13-8.el7.x86_64 @base
  272. Dep-Install tcp_wrappers-7.6-77.el7.x86_64 @base
  273. Dep-Install trousers-0.3.14-2.el7.x86_64 @base
  274. Dep-Install udisks2-2.7.3-9.el7.x86_64 @base
  275. Dep-Install udisks2-iscsi-2.7.3-9.el7.x86_64 @base
  276. Dep-Install udisks2-lvm2-2.7.3-9.el7.x86_64 @base
  277. Dep-Install volume_key-libs-0.3.9-9.el7.x86_64 @base
  278. history info
  279.  
  280.  
  281.  
  282.  
  283. But I found one piece of information if I run yum from the terminal so it works normally, but when I wanted the commands you wrote I wanted to put in the script so yum doesn't work see below
  284.  
  285. [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
  286.  
  287. If you cannot solve this problem yourself, please go to
  288. the yum faq at:
  289. LINK
  290.  
  291.  
  292. There was a problem importing one of the Python modules
  293. required to run yum. The error leading to this problem was:
  294.  
  295. No module named yum
  296.  
  297. Please install a package which provides this module, or
  298. verify that the module is installed correctly.
  299.  
  300. It's possible that the above module doesn't match the
  301. current version of Python, which is:
  302. 2.7.14 (default, Oct 6 2019, 10:38:29)
  303. [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
  304.  
  305. If you cannot solve this problem yourself, please go to
  306. the yum faq at:
  307. LINK
  308.  
  309.  
  310. There was a problem importing one of the Python modules
  311. required to run yum. The error leading to this problem was:
  312.  
  313. No module named yum
  314.  
  315. Please install a package which provides this module, or
  316. verify that the module is installed correctly.
  317.  
  318. It's possible that the above module doesn't match the
  319. current version of Python, which is:
  320. 2.7.14 (default, Oct 6 2019, 10:38:29)
  321. [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
  322.  
  323. If you cannot solve this problem yourself, please go to
  324. the yum faq at:
  325. LINK
  326.  
  327.  
  328. There was a problem importing one of the Python modules
  329. required to run yum. The error leading to this problem was:
  330.  
  331. No module named yum
  332.  
  333. Please install a package which provides this module, or
  334. verify that the module is installed correctly.
  335.  
  336. It's possible that the above module doesn't match the
  337. current version of Python, which is:
  338. 2.7.14 (default, Oct 6 2019, 10:38:29)
  339. [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
  340.  
  341. If you cannot solve this problem yourself, please go to
  342. the yum faq at:
  343. LINK
  344.  
  345.  
  346. [root@plojhar ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement