卸载pgsql时遇到了问题。不能移除。
[root@ip-172-31-31-52 /]# yum list php-pgsql\*
Loaded plugins: priorities, update-motd, upgrade-helper
Available Packages
php-pgsql.x86_64 5.3.29-1.8.amzn1 amzn-main
[root@ip-172-31-31-52 /]# yum remove php-pgsql\*
Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: php-pgsql*
No Packages marked for removal当我检查包是可用的,但仍然不能删除。请帮帮忙。谢谢
发布于 2019-02-27 05:43:02
如果查看list命令的输出,就会发现php-pgsql.x86_64是可用的,而不是安装在机器上的。这就是为什么当您点击remove命令时,它显示了no packages marked for removal。
为了支持我的答案,我尝试在ec2上运行您的这两个命令,如果它已经安装,那么这个命令就会删除这个包。
现在,如果在ec2上安装插件并运行list命令,它将显示已安装的包:
[root@ip-xx-xxx-xx-xxx ec2-user]# yum list php-pgsql*
Loaded plugins: priorities, update-motd, upgrade-helper
Installed Packages -- this line shows it installed.
php-pgsql.x86_64 尝试删除命令以删除包:
[root@ip-xx-xxx-xx-xxx ec2-user]# yum remove php-pgsql* -y
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package php-pgsql.x86_64 0:5.3.29-1.8.amzn1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Removing:
php-pgsql x86_64 5.3.29-1.8.amzn1 @amzn-main 315 k
Transaction Summary
=============================================================================================================================================================================================================================================
Remove 1 Package
Installed size: 315 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : php-pgsql-5.3.29-1.8.amzn1.x86_64 1/1
Verifying : php-pgsql-5.3.29-1.8.amzn1.x86_64 1/1
Removed:
php-pgsql.x86_64 0:5.3.29-1.8.amzn1
Complete!https://stackoverflow.com/questions/54897786
复制相似问题