博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ubuntu 卸载干净软件(包括配置文件)
阅读量:7233 次
发布时间:2019-06-29

本文共 1264 字,大约阅读时间需要 4 分钟。

 

 

 

 

I am in the process of cleaning up my system. And I see a lot of space occupied by this folder /var/cache/apt/archives (1.5GB). Is it absolutely necessary to keep all these archives?

You don't need to keep them around if you don't want them. Executing a

sudo apt-get clean

will clean out the directory.

-----------------------------------------------------------------------------------------------------------------------------

删除nginx,–purge包括配置文件

sudo apt-get --purge remove nginx
  • 1

自动移除全部不使用的软件包

sudo apt-get autoremove

列出与nginx相关的软件 并删除显示的软件

dpkg --get-selections|grep nginxsudo apt-get --purge remove nginxsudo apt-get --purge remove nginx-common sudo apt-get --purge remove nginx-core

再次执行

dpkg --get-selections|grep nginxwhich nginx # 不在显示nginx

这样就可以完全卸载掉nginx包括配置文件 

注意点:首先需要停止nginx的服务

sudo service nginx stop ----------------------------------------------------------------------------------------------------------------------------

sudo apt-get remove nginx nginx-common # Removes all but config files.

sudo apt-get purge nginx nginx-common # Removes everything.

sudo apt-get autoremove # After using any of the above commands, use this in order to remove dependencies used by nginx which are no longer required.

 
 

转载地址:http://xclfm.baihongyu.com/

你可能感兴趣的文章
redis添加systemctl服务
查看>>
如何获取数据表中自增主键的值
查看>>
【C# in depth 第三版】温故而知新(1)
查看>>
hdu2955 Robberies
查看>>
Ubantu MySQL数据库操作
查看>>
2018-2019-2 网络对抗技术 20165324 Exp5:MSF基础应用
查看>>
final用法
查看>>
Flask架站基础篇(七)--SQLAlchemy(1)
查看>>
Java程序设计第一次作业
查看>>
浏览器盒子模型
查看>>
由上一个血案引发的关于property和attribute关系的思考
查看>>
BZOJ 2734: [HNOI2012]集合选数
查看>>
Xilinx FPGA结构
查看>>
day06<面向对象>
查看>>
Panel(面板)数据结构
查看>>
Python 学习笔记 -- 类的访问限制
查看>>
图片轮播——点击切换
查看>>
20145223《信息安全系统设计基础》第9周学习总结
查看>>
【转】Python特殊语法:filter、map、reduce、lambda
查看>>
Java实现Http服务器(二)
查看>>