Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [quote="dnutan, post:4, topic:13772"]
- history |grep 2019-10-28
- [/quote]
- history |grep 2019-10-28
- > 596 2019-10-28 15:09:13 yum update
- 597 2019-10-28 15:14:06 /usr/bin/yum
- 598 2019-10-28 15:14:41 /usr/bin/yumlocate yum
- 599 2019-10-28 15:14:44 locate yum
- 600 2019-10-28 15:14:50 yum install locate
- 601 2019-10-28 15:15:26 find -name yum
- 602 2019-10-28 15:15:32 find / -name yum
- 603 2019-10-28 15:15:54 /usr/lib/python2.7/site-packages/yum
- 604 2019-10-28 15:16:02 /usr/bin/yum/
- 605 2019-10-28 15:16:03 /usr/bin/yum
- 606 2019-10-28 15:16:18 /var/lib/machines/nsdc/var/lib/yum/
- 607 2019-10-28 15:16:41 whitch
- 608 2019-10-28 15:16:51 which
- 609 2019-10-28 15:16:53 which yum
- 610 2019-10-28 15:17:18 printenv
- 611 2019-10-28 15:17:59 ./usr/lib64/yum
- 612 2019-10-28 15:18:04 ./usr/lib64 yum
- 613 2019-10-28 15:18:32 rpm -q yum
- 614 2019-10-28 15:18:52 type -a yum
- 615 2019-10-28 15:19:13 /usr/bin/yum
- 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
- 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
- 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
- 619 2019-10-28 15:22:39 find / -name yum
- 620 2019-10-28 15:22:57 cd /var/lib/machines/nsdc/etc/yum
- 621 2019-10-28 15:22:58 ls
- 622 2019-10-28 15:23:01 nano vars/
- 623 2019-10-28 15:23:05 cd vars/
- 624 2019-10-28 15:23:06 ls
- 625 2019-10-28 15:23:09 cd nsrelease
- 626 2019-10-28 15:23:12 cat nsrelease
- 627 2019-10-28 15:23:18 cd ..
- 628 2019-10-28 15:23:20 ls
- 629 2019-10-28 15:23:24 cd protected.d/
- 630 2019-10-28 15:23:24 ls
- 631 2019-10-28 15:23:28 cat systemd.conf
- 632 2019-10-28 15:23:31 cd ..
- 633 2019-10-28 15:23:44 nano /etc/yum/yum.conf
- 634 2019-10-28 15:24:18 cd vars/
- 635 2019-10-28 15:24:19 ls
- 636 2019-10-28 15:24:21 cd ..
- 637 2019-10-28 15:24:25 cd va
- 638 2019-10-28 15:24:28 cd vars/
- 639 2019-10-28 15:24:29 ls
- 640 2019-10-28 15:24:33 cat contentdir
- 641 2019-10-28 15:24:36 cat infra
- 642 2019-10-28 15:24:39 cd ..
- 643 2019-10-28 15:24:39 sl
- 644 2019-10-28 15:24:40 ls
- 645 2019-10-28 15:24:44 cd ..
- 646 2019-10-28 15:24:44 ls
- 647 2019-10-28 15:25:00 cd /var/lib/machines/nsdc/var/lib/yum
- 648 2019-10-28 15:25:01 ls
- 649 2019-10-28 15:25:11 cat uuid
- 650 2019-10-28 15:27:45 yum install cockpit
- 651 2019-10-28 15:28:57 yum install nethserver-cockpit
- 652 2019-10-28 15:30:55 echo '{"action":"start","name":"collectd"}' | /usr/bin/sudo /usr/libexec/nethserver/api/system-services/update | jq
- 653 2019-10-28 15:32:10 nano .bashrtc
- 670 2019-11-03 14:14:21 history |grep 2019-10-28
- 676 2019-11-03 14:15:29 history |grep 2019-10-28
- 678 2019-11-03 14:15:35 history |grep 2019-10-28
- python -V
- > [root@plojhar ~]# python -V
- Python 2.7.14
- yum history info 33
- Update 3.10.0-1062.4.1.el7.x86_64 @updates
- Updated kernel-headers-3.10.0-1062.1.2.el7.x86_64 @updates
- Update 3.10.0-1062.4.1.el7.x86_64 @updates
- Updated kernel-tools-3.10.0-1062.1.2.el7.x86_64 @updates
- Update 3.10.0-1062.4.1.el7.x86_64 @updates
- Updated kernel-tools-libs-3.10.0-1062.1.2.el7.x86_64 @updates
- Update 3.10.0-1062.4.1.el7.x86_64 @updates
- Updated lvm2-7:2.02.185-2.el7.x86_64 @base
- Update 7:2.02.185-2.el7_7.2.x86_64 @updates
- Updated lvm2-libs-7:2.02.185-2.el7.x86_64 @base
- Update 7:2.02.185-2.el7_7.2.x86_64 @updates
- Updated microcode_ctl-2:2.1-53.el7.x86_64 @base
- Update 2:2.1-53.2.el7_7.x86_64 @updates
- Loading mirror speeds from cached hostfile
- * base: mirror.karneval.cz
- * ce-base: mirror.as29550.net
- * ce-extras: mirror.as29550.net
- * ce-sclo-rh: mirror.as29550.net
- * ce-sclo-sclo: mirror.as29550.net
- * ce-updates: mirror.as29550.net
- * epel: mirror.karneval.cz
- * extras: mirror.karneval.cz
- * nethforge: nethserver.interlin.nl
- * nethserver-base: nethserver.interlin.nl
- * nethserver-updates: nethserver.interlin.nl
- * updates: mirror.karneval.cz
- Updated ncpa-2.1.9-1.el8.x86_64 @?nagios-base
- Update 2.2.0-1.el8.x86_64 @nagios-base
- Updated nethserver-subscription-3.4.1-1.ns7.noarch @nethserver-updates
- Update 3.5.1-1.ns7.noarch @nethserver-updates
- Dep-Install nethserver-subscription-inventory-3.5.1-1.ns7.x86_64 @nethserver-updates
- Updated nethserver-subscription-ui-3.4.1-1.ns7.noarch @nethserver-updates
- Update 3.5.1-1.ns7.noarch @nethserver-updates
- Updated patch-2.7.1-11.el7.x86_64 @base
- Update 2.7.1-12.el7_7.x86_64 @updates
- Updated procps-ng-3.3.10-26.el7.x86_64 @base
- Update 3.3.10-26.el7_7.1.x86_64 @updates
- Updated python-firewall-0.6.3-2.el7_7.1.noarch @updates
- Update 0.6.3-2.el7_7.2.noarch @updates
- Updated python-perf-3.10.0-1062.1.2.el7.x86_64 @updates
- Update 3.10.0-1062.4.1.el7.x86_64 @updates
- Updated python-requests-2.6.0-5.el7.noarch @base
- Update 2.6.0-7.el7_7.noarch @updates
- Updated python2-acme-0.38.0-1.el7.noarch @epel
- Update 0.39.0-1.el7.noarch @epel
- Updated python2-certbot-0.38.0-1.el7.noarch @epel
- Update 0.39.0-1.el7.noarch @epel
- Updated rsyslog-8.24.0-41.el7_7.x86_64 @updates
- Update 8.24.0-41.el7_7.2.x86_64 @updates
- Updated systemd-219-67.el7_7.1.x86_64 @updates
- Update 219-67.el7_7.2.x86_64 @updates
- Updated systemd-libs-219-67.el7_7.1.x86_64 @updates
- Update 219-67.el7_7.2.x86_64 @updates
- Updated systemd-sysv-219-67.el7_7.1.x86_64 @updates
- Update 219-67.el7_7.2.x86_64 @updates
- Scriptlet output:
- 1 warning: file /lib/modules/3.10.0-957.10.1.el7.x86_64/updates: remove failed: No such file or directory
- 2 Error! echo
- 3 Your kernel headers for kernel 3.10.0-1062.4.1.el7.x86_64 cannot be found at
- 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.
- history info
- yum history info 34
- [root@plojhar ~]# yum history info 34
- Loaded plugins: changelog, fastestmirror, nethserver_events
- Transaction ID : 34
- Begin time : Mon Oct 28 15:08:00 2019
- Begin rpmdb : 698:da22a2655838a294a4f4a49971e81a1579cfcbe3
- End time : 15:08:13 2019 (13 seconds)
- End rpmdb : 698:74a79005894d798f1257ca307d2108d0f2b955db
- User : root <root>
- Return-Code : Success
- Command Line : install -y LINK/nethserver-release-7.rpm
- Transaction performed with:
- Installed rpm-4.11.3-40.el7.x86_64 @base
- Installed yum-3.4.3-163.el7.centos.noarch @base
- Installed yum-plugin-fastestmirror-1.1.31-52.el7.noarch @base
- Packages Altered:
- Updated nethserver-release-7-13.ns7.noarch @nethserver-updates
- Update 7-15.ns7.noarch @/nethserver-release-7
- history info
- yum history info 35
- [root@plojhar ~]# yum history info 35
- Loaded plugins: changelog, fastestmirror, nethserver_events
- Transaction ID : 35
- Begin time : Mon Oct 28 15:09:22 2019
- Begin rpmdb : 698:74a79005894d798f1257ca307d2108d0f2b955db
- End time : 15:11:04 2019 (102 seconds)
- End rpmdb : 702:2150b22d0fa5701189f5916c788deee9bb090b3a
- User : root <root>
- Return-Code : Success
- Command Line : update
- Transaction performed with:
- Installed rpm-4.11.3-40.el7.x86_64 @base
- Installed yum-3.4.3-163.el7.centos.noarch @base
- Installed yum-metadata-parser-1.1.4-10.el7.x86_64 @anaconda
- Installed yum-plugin-fastestmirror-1.1.31-52.el7.noarch @base
- Packages Altered:
- Dep-Install conntrack-tools-1.4.4-5.el7_7.2.x86_64 @ce-updates
- Dep-Install libnetfilter_cthelper-1.0.0-10.el7_7.1.x86_64 @ce-updates
- Dep-Install libnetfilter_cttimeout-1.0.0-6.el7_7.1.x86_64 @ce-updates
- Dep-Install libnetfilter_queue-1.0.2-2.el7_2.x86_64 @base
- Updated nethserver-cockpit-lib-0.15.1-1.ns7.noarch @nethserver-updates
- Update 1.2.0-1.ns7.noarch @nethserver-updates
- Updated nethserver-dc-1.6.6-1.ns7.x86_64 @nethserver-updates
- Update 1.7.0-1.ns7.x86_64 @nethserver-base
- Updated nethserver-duc-1.6.0-1.ns7.noarch @nethserver-updates
- Update 1.7.0-1.ns7.noarch @nethserver-base
- Updated nethserver-firewall-base-3.6.6-1.ns7.noarch @nethserver-updates
- Update 3.7.3-1.ns7.noarch @nethserver-updates
- Updated nethserver-httpd-3.5.0-1.ns7.noarch @nethserver-updates
- Update 3.6.2-1.ns7.noarch @nethserver-updates
- Updated nethserver-httpd-admin-2.3.4-1.ns7.noarch @nethserver
- Update 2.4.0-1.ns7.noarch @nethserver-base
- Updated nethserver-lang-en-1.3.0-10.ns7.noarch @nethserver-updates
- Update 1.4.2-2.ns7.noarch @nethserver-updates
- Updated nethserver-mail-smarthost-2.7.3-1.ns7.noarch @nethserver-updates
- Update 2.8.3-1.ns7.noarch @nethserver-updates
- Updated nethserver-openssh-1.2.2-1.ns7.noarch @nethserver
- Update 1.3.0-1.ns7.noarch @nethserver-base
- Updated nethserver-release-7-15.ns7.noarch @/nethserver-release-7
- Update 7-16.ns7.noarch @nethserver-updates
- Updated nethserver-samba-4.3.4-1.ns7.noarch @nethserver-updates
- Update 4.5.0-1.ns7.noarch @nethserver-updates
- Updated nethserver-sssd-1.4.8-1.ns7.noarch @nethserver-updates
- Update 1.5.0-1.ns7.noarch @nethserver-base
- Updated nethserver-subscription-3.5.1-1.ns7.noarch @nethserver-updates
- Update 3.5.2-1.ns7.noarch @nethserver-updates
- Updated nethserver-subscription-inventory-3.5.1-1.ns7.x86_64 @nethserver-updates
- Update 3.5.2-1.ns7.x86_64 @nethserver-updates
- Updated nethserver-subscription-ui-3.5.1-1.ns7.noarch @nethserver-updates
- Update 3.5.2-1.ns7.noarch @nethserver-updates
- Updated nethserver-vpn-ui-1.1.0-1.ns7.noarch @nethserver-updates
- Update 1.2.3-1.ns7.noarch @nethserver-updates
- history info
- yum history info 36
- Dep-Install keyutils-1.5.8-3.el7.x86_64 @base
- Dep-Install libatasmart-0.19-6.el7.x86_64 @base
- Dep-Install libblockdev-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-crypto-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-fs-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-loop-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-lvm-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-mdraid-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-part-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-swap-2.18-4.el7.x86_64 @base
- Dep-Install libblockdev-utils-2.18-4.el7.x86_64 @base
- Dep-Install libbytesize-1.2-1.el7.x86_64 @base
- Dep-Install libevent-2.0.21-4.el7.x86_64 @base
- Dep-Install libgudev1-219-67.el7_7.2.x86_64 @ce-updates
- Dep-Install libmodman-2.0.1-8.el7.x86_64 @base
- Dep-Install libproxy-0.4.11-11.el7.x86_64 @base
- Dep-Install libreport-filesystem-2.1.11-43.el7.centos.x86_64 @base
- Dep-Install librsync-2.0.2-1.el7.x86_64 @epel
- Dep-Install libtirpc-0.2.4-0.16.el7.x86_64 @base
- Dep-Install libudisks2-2.7.3-9.el7.x86_64 @base
- Dep-Install libverto-tevent-0.2.5-4.el7.x86_64 @base
- Dep-Install libyaml-0.1.4-11.el7_0.x86_64 @base
- Dep-Install mdadm-4.1-1.el7.x86_64 @base
- Dep-Install ncftp-2:3.2.5-7.el7.x86_64 @epel
- Dep-Install neon-0.30.0-4.el7.x86_64 @base
- Dep-Install nethserver-backup-data-1.6.3-1.ns7.noarch @nethserver-base
- Install nethserver-cockpit-1.2.0-1.ns7.noarch @nethserver-updates
- Dep-Install nethserver-lang-cockpit-1.4.2-2.ns7.noarch @nethserver-updates
- Dep-Install nettle-2.7.1-8.el7.x86_64 @base
- Dep-Install nfs-utils-1:1.3.0-0.65.el7.x86_64 @base
- Dep-Install pakchois-0.4-10.el7.x86_64 @base
- Dep-Install perl-String-ShellQuote-1.04-10.el7.noarch @base
- Dep-Install pexpect-2.3-11.el7.noarch @base
- Dep-Install python-GnuPGInterface-0.3.2-11.el7.noarch @epel
- Dep-Install python-fasteners-0.9.0-2.el7.noarch @epel
- Dep-Install python-httplib2-0.9.2-1.el7.noarch @ce-extras
- Dep-Install python-lockfile-1:0.9.1-4.el7.centos.noarch @ce-extras
- Dep-Install python-paramiko-2.1.1-9.el7.noarch @base
- Dep-Install python-pwquality-1.2.3-5.el7.x86_64 @base
- Dep-Install python2-PyDrive-1.3.1-3.el7.noarch @epel
- Dep-Install python2-boto-2.45.0-3.el7.noarch @epel
- Dep-Install python2-gflags-2.0-5.el7.noarch @epel
- Dep-Install python2-google-api-client-1.6.3-1.el7.noarch @epel
- Dep-Install python2-keyring-5.0-4.el7.noarch @epel
- Dep-Install python2-oauth2client-4.0.0-2.el7.noarch @epel
- Dep-Install python2-pyasn1-modules-0.1.9-7.el7.noarch @base
- Dep-Install python2-rsa-3.4.1-1.el7.noarch @epel
- Dep-Install python2-uritemplate-3.0.0-1.el7.noarch @epel
- Dep-Install quota-1:4.01-19.el7.x86_64 @base
- Dep-Install quota-nls-1:4.01-19.el7.noarch @base
- Dep-Install restic-0.9.3-1.ns7.x86_64 @nethserver-base
- Dep-Install rpcbind-0.2.0-48.el7.x86_64 @base
- Dep-Install sshpass-1.06-2.el7.x86_64 @ce-extras
- Dep-Install tcl-1:8.5.13-8.el7.x86_64 @base
- Dep-Install tcp_wrappers-7.6-77.el7.x86_64 @base
- Dep-Install trousers-0.3.14-2.el7.x86_64 @base
- Dep-Install udisks2-2.7.3-9.el7.x86_64 @base
- Dep-Install udisks2-iscsi-2.7.3-9.el7.x86_64 @base
- Dep-Install udisks2-lvm2-2.7.3-9.el7.x86_64 @base
- Dep-Install volume_key-libs-0.3.9-9.el7.x86_64 @base
- history info
- 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
- [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
- If you cannot solve this problem yourself, please go to
- the yum faq at:
- LINK
- There was a problem importing one of the Python modules
- required to run yum. The error leading to this problem was:
- No module named yum
- Please install a package which provides this module, or
- verify that the module is installed correctly.
- It's possible that the above module doesn't match the
- current version of Python, which is:
- 2.7.14 (default, Oct 6 2019, 10:38:29)
- [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
- If you cannot solve this problem yourself, please go to
- the yum faq at:
- LINK
- There was a problem importing one of the Python modules
- required to run yum. The error leading to this problem was:
- No module named yum
- Please install a package which provides this module, or
- verify that the module is installed correctly.
- It's possible that the above module doesn't match the
- current version of Python, which is:
- 2.7.14 (default, Oct 6 2019, 10:38:29)
- [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
- If you cannot solve this problem yourself, please go to
- the yum faq at:
- LINK
- There was a problem importing one of the Python modules
- required to run yum. The error leading to this problem was:
- No module named yum
- Please install a package which provides this module, or
- verify that the module is installed correctly.
- It's possible that the above module doesn't match the
- current version of Python, which is:
- 2.7.14 (default, Oct 6 2019, 10:38:29)
- [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
- If you cannot solve this problem yourself, please go to
- the yum faq at:
- LINK
- [root@plojhar ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement