【LinuxOS】卸载Ubuntu不必要软件
2022/3/22 7:31:59
本文主要是介绍【LinuxOS】卸载Ubuntu不必要软件,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
通过dpkg --list查看所有安装的软件
root@as-virtual-machine:/usr/src# dpkg --list
卸载自带浏览器firefox
执行如下代码
root@as-virtual-machine:/usr/src# dpkg --get-selections |grep firefox firefox install firefox-locale-en install root@as-virtual-machine:/usr/src# sudo apt-get purge firefox firefox-locale-en
效果如下,减少了234MB空间
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: firefox* firefox-locale-en* 0 upgraded, 0 newly installed, 2 to remove and 16 not upgraded. After this operation, 234 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 164275 files and directories currently installed.) Removing firefox (98.0.1+build2-0ubuntu0.20.04.1) ... Removing firefox-locale-en (98.0.1+build2-0ubuntu0.20.04.1) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... (Reading database ... 164176 files and directories currently installed.) Purging configuration files for firefox (98.0.1+build2-0ubuntu0.20.04.1) ...
卸载gedit
root@as-virtual-machine:/home/as# apt-get -y purge gedit root@as-virtual-machine:/home/as# apt-get -y purge gedit-common root@as-virtual-machine:/home/as# apt-get -y purge gir1.2-gtksource-4 libamtk-5-0 libamtk-5-common libtepl-4-0 python3-gi-cairo
卸载evince
root@as-virtual-machine:/home/as# apt-get remove --purge evince root@as-virtual-machine:/home/as# apt-get -y purge evince-common libdjvulibre-text libdjvulibre21 libevdocument3-4 libevview3-3 libgspell-1-2 libgspell-1-common libkpathsea6 libspectre1 libsynctex2
其他
apt-get purge mdadm \ git \ acpid \ vim* \ ubuntu-cloudimage-keyring \ ubuntu-core-launcher \ software-properties-common \ lxc* \ lxd* \ perl apt-get autoremove
这篇关于【LinuxOS】卸载Ubuntu不必要软件的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-12如何创建可引导的 ESXi USB 安装介质 (macOS, Linux, Windows)
- 2024-11-08linux的 vi编辑器中搜索关键字有哪些常用的命令和技巧?-icode9专业技术文章分享
- 2024-11-08在 Linux 的 vi 或 vim 编辑器中什么命令可以直接跳到文件的结尾?-icode9专业技术文章分享
- 2024-10-22原生鸿蒙操作系统HarmonyOS NEXT(HarmonyOS 5)正式发布
- 2024-10-18操作系统入门教程:新手必看的基本操作指南
- 2024-10-18初学者必看:操作系统入门全攻略
- 2024-10-17操作系统入门教程:轻松掌握操作系统基础知识
- 2024-09-11Linux部署Scrapy学习:入门级指南
- 2024-09-11Linux部署Scrapy:入门级指南
- 2024-08-21【Linux】分区向左扩容的方法