在历史中搜索某个软件包是
yum history list Name/ ID
yum history list ceph-common
Loaded plugins: fastestmirror
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
19 | remove ceph-common | 2019-07-31 22:23 | Erase | 1 EE
10 | install ceph-common | 2018-07-16 04:36 | Update | 16
4 | install targetcli ceph-c | 2018-05-02 22:34 | Install | 32
history list
回滚是
yum history undo ID
yum history undo 4
Loaded plugins: fastestmirror
Dependencies Resolved
...
============================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================
Removing:
boost-iostreams x86_64 1.53.0-27.el7 @base 209 k
boost-program-options x86_64 1.53.0-27.el7 @base 917 k
boost-random x86_64 1.53.0-27.el7 @base 28 k
boost-regex x86_64 1.53.0-27.el7 @base 2.0 M
fcgi x86_64 2.4.0-25.el7 @epel 101 k
gperftools-libs x86_64 2.4-8.el7 @base 1.4 M
libbabeltrace x86_64 1.2.4-3.el7 @epel 398 k
libcephfs1 x86_64 1:10.2.10-0.el7 @ceph 6.0 M
libnl x86_64 1.1.4-3.el7 @base 365 k
librados2 x86_64 1:10.2.10-0.el7 @ceph 6.4 M
libradosstriper1 x86_64 1:10.2.10-0.el7 @ceph 6.8 M
librbd1 x86_64 1:10.2.10-0.el7 @ceph 8.1 M
librgw2 x86_64 1:10.2.10-0.el7 @ceph 11 M
libunwind x86_64 2:1.2-2.el7 @base 150 k
lttng-ust x86_64 2.4.1-4.el7 @epel 717 k
pyparsing noarch 1.5.6-9.el7 @base 367 k
python-backports x86_64 1.0-8.el7 @base 638
python-backports-ssl_match_hostname noarch 3.4.0.2-4.el7 @base 14 k
python-cephfs x86_64 1:10.2.10-0.el7 @ceph 285 k
python-chardet noarch 2.2.1-1.el7_1 @base 1.1 M
python-configshell noarch 1:1.1.fb23-3.el7 @base 493 k
python-ethtool x86_64 0.8-5.el7 @base 74 k
python-kmod x86_64 0.9-4.el7 @base 176 k
python-rados x86_64 1:10.2.10-0.el7 @ceph 498 k
python-rbd x86_64 1:10.2.10-0.el7 @ceph 259 k
python-requests noarch 2.6.0-1.el7_1 @base 343 k
python-rtslib noarch 2.1.fb63-2.el7 @base 680 k
python-urllib3 noarch 1.10.2-3.el7 @base 377 k
python-urwid x86_64 1.1.1-3.el7 @base 2.7 M
targetcli noarch 2.1.fb46-1.el7 @base 224 k
userspace-rcu x86_64 0.7.16-1.el7 @epel 256 k
Removing for dependencies:
atomic-registries x86_64 1:1.22.1-26.gitb507039.el7.centos @extras 42 k
ceph-devel-compat x86_64 1:10.2.10-0.el7 @ceph 0.0
docker x86_64 2:1.13.1-96.gitb2f74b2.el7.centos @extras 65 M
docker-client x86_64 2:1.13.1-96.gitb2f74b2.el7.centos @extras 13 M
docker-common x86_64 2:1.13.1-96.gitb2f74b2.el7.centos @extras 4.4 k
libcephfs1-devel x86_64 1:10.2.10-0.el7 @ceph 57 k
libcephfs_jni1 x86_64 1:10.2.10-0.el7 @ceph 6.0 M
libcephfs_jni1-devel x86_64 1:10.2.10-0.el7 @ceph 0.0
librados2-devel x86_64 1:10.2.10-0.el7 @ceph 2.2 M
libradosstriper1-devel x86_64 1:10.2.10-0.el7 @ceph 26 k
librbd1-devel x86_64 1:10.2.10-0.el7 @ceph 45 k
perl-ExtUtils-CBuilder noarch 1:0.28.2.6-292.el7 @base 62 k
perl-ExtUtils-Install noarch 1.58-292.el7 @base 75 k
perl-ExtUtils-MakeMaker noarch 6.68-3.el7 @base 635 k
perl-ExtUtils-ParseXS noarch 1:3.18-3.el7 @base 174 k
perl-IPC-Cmd noarch 1:0.80-4.el7 @base 78 k
perl-devel x86_64 4:5.16.3-292.el7 @base 1.8 M
python-setuptools noarch 0.9.8-7.el7 @base 1.9 M
systemtap-sdt-devel x86_64 3.2-8.el7_5 @updates 172 k
Not installed:
ceph-common x86_64 1:10.2.10-0.el7 - 0.0
Transaction Summary
============================================================================================================================================================================
Remove 31 Packages (+19 Dependent packages)
Not installed 1 Package
Installed size: 142 M
Is this ok [y/N]: