当前位置:TranBon博客 > 首页 > 技术 > centos批量卸载软件

centos批量卸载软件

adminis4年前 (2020-08-14)技术27910

rpm -q --all --last 查看软件安装(更新)的时间

导出安装的软件

rpm -q --all > test.txt

批量卸载test里的软件

cat test.txt | xargs rpm -e
第4条随机版权

扫描二维码推送至手机访问。

版权声明:本文由TranBon博客发布,如需转载请注明出处。

本文链接:https://bk.tranbon.com/?id=260

相关文章

vi编辑器教程

http://blog.sina.com.cn/s/blog_736f1c59010136ry.htmlhttp://blog.csdn.net/lanxinju/article/details/57...

SSR 一键部署脚本

一个逗比写的逗比脚本ssr.sh脚本说明: ShadowsocksR 一键安装/管理脚本,支持单端口/多端口切换和管理系统支持: CentOS6+ / Debian6+ / Ubuntu14+使用方法...

centos7破密时提示Authentication token manipulation error

centos7破密时提示Authentication token manipulation error

需要在passwd 前输入 chattr -i /etc/passwd chattr -i /etc/shadow如下:...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。