09 删掉某个可执行文件相关依赖
删掉某个可执行文件相关依赖
我们在用apt-get装了某个可执行文件/库之后,可能又想删掉它,可能第一时间想到的方式是用rm *的方式删,但是这样容易删不干净。既然文件是由apt-get安装的,拿再由包管理工具删掉就好了
寻找待卸载文件属于哪个包
以qemu-system-riscv64为例
法1:检查系统中通过 apt 安装的 QEMU 相关包
1 | apt list --installed | grep qemu |
法2:查看具体包名
1 | dpkg -S /usr/bin/qemu-system-riscv64 |
卸载包
1 | sudo apt-get remove qemu-system-riscv # 保留配置文件 |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
