System maintenance (简体中文)

From ArchWiki
Revision as of 00:09, 6 December 2012 by (Talk | contribs) (use https for links to

Jump to: navigation, search


附注: please use the first argument of the template to provide more detailed indications.

Read the News

Often, the developers will provide important information about required configurations and modifications for known issues. The Arch Linux user is expected to consult these places before performing an upgrade.

The Arch Linux News is posted here: [1] You can subscribe to the rss feed by adding: [2] to your favorite feed reading software. You can also get news by subscribing to the Arch Announce mailing list: [3].

Pay special attention to news items with "manual intervention required" in their header. You can avoid a lot of trouble and embarrassment by reading the instructions in these news announcements and following them.


警告: 进行系统升级时请小心,执行前请仔细阅读并理解 这个帖子


# pacman -Syu


# pacman --sync --refresh --sysupgrade

pacman 会从服务器下载 /etc/pacman.conf 中定义的主软件包列表,进行所有可用的升级操作。此时可能会提示说 pacman 自己需要先进性升级,如果这样,请选择是并在完成后重新执行 pacman -Syu


注意: 时不时的,升级之后需要用户执行配置修改,详情参见Pacnew and Pacsave Files

请记住 Arch 是 滚动发布 的发行版。这意味着升级到新版本不需要重装或者重新建构。只需要定期执行 pacman -Syu 就可以将系统保持在最新前沿状态。升级后,系统完全是最新的。如果内核升级了,请记得 重新启动

pacman 输出会保存到 /var/log/pacman.log。更新、管理软件包时遇到的常见问题请参阅Pacman (简体中文)这里


  • When you update, check pacman output for instructions related to updated packages.
  • Use pacman -Qdt to find orphaned packages, and pacman -Qo <file> to find out which package owns that particular file.
  • Check for out-of-date or unmaintained AUR packages on your system. Sometimes these can cause problems when you update.
  • Check the size of /var and clear pacman's cache once in a while. A useful tool to assist in this process is cachecleanAUR.


  • Check disk (use fstab options to check at boot)
  • Search logs for errors (list scripts, tools to make this easier/more automated)
  • Look into errors as soon as possible - do not leave them unattended to.

Bad Practices

  • Linking random libraries together to get a program to work.
  • Updating once a year.
  • Copy-pasting commands into the terminal without at least reading man pages to understand what you are doing to your system.
  • Clearing the entire package cache using pacman -Scc - this removes the possibility to do package downgrades in cases of breakage.

See also