Changelog
- Debian and Ubuntu in
mo clean: Old package files that apt can no longer download are removed withapt-get autoclean, after one sudo prompt and never while apt or an update runs. The space Snap keeps for older app revisions is shown with the command to free it, and left alone, sincesnap revertrolls back to those. - apt and Snap apps in
mo uninstall: apt apps are removed through apt with its own confirmation, and the plan names every other package apt would take along. For a snap, it shows how big~/snap/<name>is, since snap deletes that folder too, and--yesskips snaps that keep data there. Ubuntu's own system packages are never offered. - Debian and Ubuntu checks in
mo optimize: Points out packages nothing needs anymore, configuration that removed packages left behind with thesudo apt purgecommand, and.dpkg-distand.ucf-distfiles in/etcwaiting to be merged. It only reports them and changes nothing.
更新日志
mo clean支持 Debian 和 Ubuntu:用apt-get autoclean清理 apt 已经下载不到的旧安装包,只问一次 sudo,apt 或系统更新在运行时不会动手,Snap 为旧版本应用占的空间会列出来并给出释放命令,但不会删除,因为snap revert要靠它们回滚。mo uninstall支持 apt 和 Snap 应用:apt 应用交给 apt 删除并保留它自己的确认,删除前会列出 apt 会连带删掉的其他包,snap 应用会显示~/snap/<名字>有多大,因为 snap 会一起删除这个文件夹,--yes会跳过在里面存有数据的 snap,Ubuntu 自带的系统包不会出现在列表里。mo optimize新增 Debian 和 Ubuntu 检查:列出已经没有用的包、卸载后残留的配置和对应的sudo apt purge命令,以及/etc里等着合并的.dpkg-dist、.ucf-dist文件,只报告,不改动。
Install
curl -fsSL https://raw.githubusercontent.com/tw93/Mole/linux/install.sh | bashMole installs into ~/.local/share/mole and links mo into ~/.local/bin, with no sudo. Already installed? Run mo update. SHA256SUMS.txt lists the checksum of each archive, and the installer checks it before installing.