暂无图片
yum remove可以回退吗?
我来答
分享
Thomas
2022-10-17
yum remove可以回退吗?

如下, 运行yum remove nfs-utils,可是在remove过程中,似乎把依赖包也给删除了。现在想回退这步remove操作,可能吗?

[root@iZ25jhvkfvmZ nfs_zhancs]# yum remove nfs-utils
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.3.0-0.68.el7.2 will be erased
--> Processing Dependency: nfs-utils for package: oracle-rdbms-server-12cR1-preinstall-1.0-6.el7.x86_64
--> Processing Dependency: nfs-utils for package: ipa-client-4.6.8-5.el7.centos.11.x86_64
--> Processing Dependency: nfs-utils for package: libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: nfs-utils for package: oracle-rdbms-server-11gR2-preinstall-1.0-5.el7.x86_64
--> Running transaction check
---> Package ipa-client.x86_64 0:4.6.8-5.el7.centos.11 will be erased
---> Package libvirt-daemon-driver-storage-core.x86_64 0:4.5.0-36.el7_9.5 will be erased
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.5.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-core = 4.5.0-36.el7_9.5 for package: libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-5.el7 will be erased
---> Package oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-6.el7 will be erased
--> Running transaction check
---> Package libvirt-daemon-driver-qemu.x86_64 0:4.5.0-36.el7_9.5 will be erased
--> Processing Dependency: libvirt-daemon-driver-qemu = 4.5.0-36.el7_9.5 for package: libvirt-daemon-kvm-4.5.0-36.el7_9.5.x86_64
---> Package libvirt-daemon-driver-storage.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-disk.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-gluster.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-iscsi.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-logical.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-mpath.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-rbd.x86_64 0:4.5.0-36.el7_9.5 will be erased
---> Package libvirt-daemon-driver-storage-scsi.x86_64 0:4.5.0-36.el7_9.5 will be erased
--> Running transaction check
---> Package libvirt-daemon-kvm.x86_64 0:4.5.0-36.el7_9.5 will be erased
--> Processing Dependency: libvirt-daemon-kvm for package: gnome-boxes-3.28.5-4.el7.x86_64
--> Running transaction check
---> Package gnome-boxes.x86_64 0:3.28.5-4.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Removing:
nfs-utils x86_64 1:1.3.0-0.68.el7.2 @updates 1.1 M
Removing for dependencies:
gnome-boxes x86_64 3.28.5-4.el7 @base 5.5 M
ipa-client x86_64 4.6.8-5.el7.centos.11 @updates 255 k
libvirt-daemon-driver-qemu x86_64 4.5.0-36.el7_9.5 @updates 1.5 M
libvirt-daemon-driver-storage x86_64 4.5.0-36.el7_9.5 @updates 0.0
libvirt-daemon-driver-storage-core x86_64 4.5.0-36.el7_9.5 @updates 711 k
libvirt-daemon-driver-storage-disk x86_64 4.5.0-36.el7_9.5 @updates 68 k
libvirt-daemon-driver-storage-gluster x86_64 4.5.0-36.el7_9.5 @updates 132 k
libvirt-daemon-driver-storage-iscsi x86_64 4.5.0-36.el7_9.5 @updates 64 k
libvirt-daemon-driver-storage-logical x86_64 4.5.0-36.el7_9.5 @updates 72 k
libvirt-daemon-driver-storage-mpath x86_64 4.5.0-36.el7_9.5 @updates 60 k
libvirt-daemon-driver-storage-rbd x86_64 4.5.0-36.el7_9.5 @updates 80 k
libvirt-daemon-driver-storage-scsi x86_64 4.5.0-36.el7_9.5 @updates 64 k
libvirt-daemon-kvm x86_64 4.5.0-36.el7_9.5 @updates 0.0
oracle-rdbms-server-11gR2-preinstall x86_64 1.0-5.el7 @ol7_latest 53 k
oracle-rdbms-server-12cR1-preinstall x86_64 1.0-6.el7 @ol7_latest 52 k

Transaction Summary
=====================================================================================================================================
Remove 1 Package (+15 Dependent packages)

Installed size: 9.7 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : oracle-rdbms-server-12cR1-preinstall-1.0-6.el7.x86_64 1/16
Erasing : oracle-rdbms-server-11gR2-preinstall-1.0-5.el7.x86_64 2/16
Erasing : gnome-boxes-3.28.5-4.el7.x86_64 3/16
Erasing : libvirt-daemon-kvm-4.5.0-36.el7_9.5.x86_64 4/16
Erasing : libvirt-daemon-driver-storage-4.5.0-36.el7_9.5.x86_64 5/16
Erasing : libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.5.x86_64 6/16
Erasing : libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.5.x86_64 7/16
Erasing : libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.5.x86_64 8/16
Erasing : libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.5.x86_64 9/16
Erasing : libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.5.x86_64 10/16
Erasing : libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.5.x86_64 11/16
Erasing : libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.5.x86_64 12/16
Erasing : libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64 13/16
Erasing : libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.5.x86_64 14/16
Erasing : ipa-client-4.6.8-5.el7.centos.11.x86_64 15/16
Erasing : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64 16/16
warning: file /var/lib/nfs/v4recovery: remove failed: No such file or directory
warning: file /var/lib/nfs/statd/sm.bak: remove failed: No such file or directory
warning: file /var/lib/nfs/statd/sm: remove failed: No such file or directory
warning: file /var/lib/nfs/statd: remove failed: No such file or directory
warning: directory /var/lib/nfs/rpc_pipefs: remove failed: Device or resource busy
Verifying : libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.5.x86_64 1/16
Verifying : oracle-rdbms-server-11gR2-preinstall-1.0-5.el7.x86_64 2/16
Verifying : libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.5.x86_64 3/16
Verifying : oracle-rdbms-server-12cR1-preinstall-1.0-6.el7.x86_64 4/16
Verifying : libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.5.x86_64 5/16
Verifying : ipa-client-4.6.8-5.el7.centos.11.x86_64 6/16
Verifying : libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.5.x86_64 7/16
Verifying : gnome-boxes-3.28.5-4.el7.x86_64 8/16
Verifying : libvirt-daemon-kvm-4.5.0-36.el7_9.5.x86_64 9/16
Verifying : libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.5.x86_64 10/16
Verifying : libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.5.x86_64 11/16
Verifying : libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64 12/16
Verifying : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64 13/16
Verifying : libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.5.x86_64 14/16
Verifying : libvirt-daemon-driver-storage-4.5.0-36.el7_9.5.x86_64 15/16
Verifying : libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.5.x86_64 16/16

Removed:
nfs-utils.x86_64 1:1.3.0-0.68.el7.2

Dependency Removed:
gnome-boxes.x86_64 0:3.28.5-4.el7 ipa-client.x86_64 0:4.6.8-5.el7.centos.11
libvirt-daemon-driver-qemu.x86_64 0:4.5.0-36.el7_9.5 libvirt-daemon-driver-storage.x86_64 0:4.5.0-36.el7_9.5
libvirt-daemon-driver-storage-core.x86_64 0:4.5.0-36.el7_9.5 libvirt-daemon-driver-storage-disk.x86_64 0:4.5.0-36.el7_9.5
libvirt-daemon-driver-storage-gluster.x86_64 0:4.5.0-36.el7_9.5 libvirt-daemon-driver-storage-iscsi.x86_64 0:4.5.0-36.el7_9.5
libvirt-daemon-driver-storage-logical.x86_64 0:4.5.0-36.el7_9.5 libvirt-daemon-driver-storage-mpath.x86_64 0:4.5.0-36.el7_9.5
libvirt-daemon-driver-storage-rbd.x86_64 0:4.5.0-36.el7_9.5 libvirt-daemon-driver-storage-scsi.x86_64 0:4.5.0-36.el7_9.5
libvirt-daemon-kvm.x86_64 0:4.5.0-36.el7_9.5 oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-5.el7
oracle-rdbms-server-12cR1-preinstall.x86_64 0:1.0-6.el7      

我来答
添加附件
收藏
分享
问题补充
6条回答
默认
最新
张sir

用rpm吧,可以不删除依赖包,

rpm -e --nodeps nfs-utils

暂无图片 评论
暂无图片 有用 0
打赏 0
暂无图片
严少安
2022-10-18
👍‍
Thomas

尝试用yum history undo回退,好像没有成功:

[root@iZ25jhvkfvmZ nfs_zhancs]# yum history list
Loaded plugins: langpacks
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
69 | remove nfs-utils | 2022-10-17 19:28 | Erase | 16 EE

[root@iZ25jhvkfvmZ nfs_zhancs]# yum history undo 69
Loaded plugins: langpacks
Undoing transaction 69, from Mon Oct 17 19:28:21 2022
Erase gnome-boxes-3.28.5-4.el7.x86_64 @base
Erase ipa-client-4.6.8-5.el7.centos.11.x86_64 @updates
Erase libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.5.x86_64 @updates
Erase libvirt-daemon-kvm-4.5.0-36.el7_9.5.x86_64 @updates
Erase nfs-utils-1:1.3.0-0.68.el7.2.x86_64 @updates
Erase oracle-rdbms-server-11gR2-preinstall-1.0-5.el7.x86_64 @ol7_latest
Erase oracle-rdbms-server-12cR1-preinstall-1.0-6.el7.x86_64 @ol7_latest
Error: No package(s) available to install

暂无图片 评论
暂无图片 有用 0
打赏 0
哇哈哈

有这些yum源吗

@base

@updates

@ol7_latest

暂无图片 评论
暂无图片 有用 1
打赏 0
Thomas

后来找到这些 yum源,重新手动把删除的依赖包装上了。再问个问题,如果yum remove有没有参数可以不删除依赖包,而只删除remove后的东东?

暂无图片 评论
暂无图片 有用 0
打赏 0
严少安
暂无图片

可以用rpm卸载,yum remove会把依赖也一起删掉

暂无图片 评论
暂无图片 有用 0
打赏 0
李宏达

rpm -e

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
awk增大某列宽度
回答 3
已采纳
dfh|awk&x27;{if(($1!"tmpfs")&&($1!"devtmpfs"))printf"%30s%10s%10s%1
virt-install创建kvm 指定--name参数后生成的kvm名称不对
回答 1
上传附件:virtinstall.log
linux能否针对某个操作系统用户设置密码过期策略?
回答 1
已采纳
可以
find按name搜索无法匹配出文件
回答 2
已采纳
这个问题是由find命令的name参数匹配规则导致的:不加引号时,name参数会直接把输入作为文件名去匹配而文件名通常不会包含特殊字符如所以不加引号时,name参数要精确匹配文件名加引号后,name参
inux 环境oracle备份压缩的文件 偶尔会有一两次文件大小差异太大,是什么原因导致的?
回答 3
可能是跟备份策略有关,全备还是增量?
请问各位大佬ipv6如何配置子网掩码?
回答 1
一、IPv6临时配置要临时配置IPv6地址,可以使用ifconfig命令。执行以下命令来设置IPv6地址:sudoifconfig<interface>inet6add<ipv6ad
ssh新增端口,无法访问?
回答 1
已采纳
找到原因了,需要同时修改firewalld对应服务中ssh.xml配置文件
linux下的单实例 oracle 11.2.0.4.0 目前审计是开的,如果关闭审计,是否必须重启数据库才能生效?
回答 3
是的
Linux系统下的Rman数据库备份,是否能还原到Windows系统的Oracle数据库?
回答 1
已采纳
可以,两端版本最好保持一致,在目标端恢复之后,需要重建redo和临时表空间。
Linux定时备份Mysql成一个文件,脚本单独备份是可以的,但是通过crontab备份后大小就为0了?
回答 1
crontab和脚本发出来看看