uCareSystem:Ubuntu/Linux Mint的一体化系统更新和维护工具

系统 Linux
uCareSystem Core 是一种能够自动执行基本的系统维护活动的轻型实用程序,另一方面它可以通过多种方式减少系统管理员的任务,节省大量时间。它没有任何 GUI,并提供纯粹的命令行界面来执行活动

[[195598]]

uCareSystem Core 是一种能够自动执行基本的系统维护活动的轻型实用程序,另一方面它可以通过多种方式减少系统管理员的任务,节省大量时间。它没有任何 GUI,并提供纯粹的命令行界面来执行活动。

Ubuntu 中有几种实用程序来执行系统维护活动。每种工具有它们相应的独特功能和设计。你可以添加一个 cron 任务来自动化这些任务。

uCareSystem Core 会自动刷新发行版仓库、更新可用包列表、卸载***期包、孤儿包和旧的 Linux 内核)以及清理取回的包来节省系统磁盘空间。

uCareSystem Core 功能

  • 更新包列表(它将刷新包索引)
  • 下载及安装更新
  • 更新包及系统库到***版本
  • 移除不需要的、过期的和孤儿包。
  • 移除旧内核(它为了安全保留当前和之前一个内核)
  • 移除不需要的配置文件
  • 清理已下载的临时包

在 Ubuntu/LinuxMint 中安装 uCareSystem Core

因为开发者提供了自己的 PPA,因此我们可以轻易地通过 PPA 在 Ubuntu/LinuxMint 中安装 uCareSystem Core。

  1. $ sudo add-apt-repository ppa:utappia/stable 
  2. $ sudo apt update 
  3. $ sudo apt install ucaresystem-core 

我们已经成功安装了 uCareSystem Core 包,并且在执行 CareSystem Core 命令之前要了解它是否会节省磁盘空间,使用 df -h 命令检查当前磁盘利用率。

  1. $ df -h 
  2. Filesystem      Size  Used Avail Use% Mounted on 
  3. udev            979M     0  979M   0% /dev 
  4. tmpfs           200M  6.4M  194M   4% /run 
  5. /dev/sda1        38G   19G   17G  54% / 
  6. tmpfs           999M  216K  999M   1% /dev/shm 
  7. tmpfs           5.0M  4.0K  5.0M   1% /run/lock 
  8. tmpfs           999M     0  999M   0% /sys/fs/cgroup 
  9. tmpfs           200M  112K  200M   1% /run/user/1000 

只需在终端中运行 ucaresystem-core 命令,在结束之前它会自动执行而不需要人类交互。

  1. $ sudo ucaresystem-core 
  2. _______________________________________________________ 
  3.             uCareSystem Core v3.0                       
  4.                  ~  ''  ~                               
  5.  Welcome to all-in-one System Update and maintenance    
  6.  assistant app.                                         
  7.  This simple script will automatically                
  8.  refresh your packagelist, download and                 
  9.  install updates (if there are any), remove any old     
  10.  kernels, obsolete packages and configuration files     
  11.  to free up disk space, without any need of user        
  12.  interference.                                        
  13. _______________________________________________________ 
  14.  uCareSystem Core will start in 5 seconds...  
  15. ######################### 
  16.           Started 
  17. ######################### 
  18. Ign:1 https://wire-app.wire.com/linux/debian stable InRelease 
  19. Hit:2 https://wire-app.wire.com/linux/debian stable Release 
  20. Hit:4 https://deb.nodesource.com/node_6.x yakkety InRelease 
  21. Hit:5 https://repo.skype.com/deb stable InRelease 
  22. Hit:6 http://in.archive.ubuntu.com/ubuntu yakkety InRelease 
  23. Hit:7 http://archive.canonical.com/ubuntu yakkety InRelease 
  24. Removing linux-image-extra-4.8.0-34-generic (4.8.0-34.36) ... 
  25. Purging configuration files for linux-image-extra-4.8.0-34-generic (4.8.0-34.36) ... 
  26. Removing linux-image-extra-4.8.0-32-generic (4.8.0-32.34) ... 
  27. Purging configuration files for linux-image-extra-4.8.0-32-generic (4.8.0-32.34) ... 
  28. ##################################### 
  29. Finished removing unused config files 
  30. ##################################### 
  31. Reading package lists... Done 
  32. Building dependency tree        
  33. Reading state information... Done 
  34. Del tilix 1.5.6-1~webupd8~yakkety1 [449 kB] 
  35. Del tilix-common 1.5.6-1~webupd8~yakkety1 [174 kB] 
  36. Del libfreetype6 2.6.3-3ubuntu1.2 [336 kB] 
  37. Del terminix 1.5.6-1~webupd8~yakkety1 [13.7 kB] 
  38. ###################################### 
  39.  Cleaned downloaded temporary packages 
  40. ###################################### 
  41. ######################### 
  42.           Done 
  43. ######################### 

我可以看见它如预期那样工作。同样也可以发现大概在/ 分区节省了 2GB。

  1. $ df -h 
  2. Filesystem      Size  Used Avail Use% Mounted on 
  3. udev            979M     0  979M   0% /dev 
  4. tmpfs           200M  6.4M  194M   4% /run 
  5. /dev/sda1        38G   18G   19G  49% / 
  6. tmpfs           999M  216K  999M   1% /dev/shm 
  7. tmpfs           5.0M  4.0K  5.0M   1% /run/lock 
  8. tmpfs           999M     0  999M   0% /sys/fs/cgroup 
  9. tmpfs           200M  112K  200M   1% /run/user/1000 
责任编辑:庞桂玉 来源: Linux中国
相关推荐

2009-12-03 15:34:41

Suse Linux

2012-06-12 15:00:50

PTN网络FTTH

2015-12-09 15:01:48

Linux性能监控工具

2009-09-07 23:09:17

2011-08-12 10:11:31

Oracle战略

2020-02-26 15:28:42

数据分析分析系统数据

2017-05-16 10:46:06

博阳咨询流程管理

2023-07-19 22:13:25

一体化推送平台

2009-07-02 09:32:00

2011-05-24 09:26:02

有线无线3G

2009-08-17 22:32:25

IT运维管理监控运维一体化摩卡

2009-05-13 08:21:11

SUSELinux桌面

2009-05-13 08:22:53

SUSELinux桌面

2013-06-14 15:24:01

2016-04-19 15:27:52

2014-07-30 10:08:26

collectlLinux性能监测

2009-09-01 22:45:46

2011-07-26 14:57:39

2013-10-15 11:12:50

点赞
收藏

51CTO技术栈公众号