https://wiki.archlinux.org/api.php?action=feedcontributions&user=Mescam&feedformat=atomArchWiki - User contributions [en]2024-03-28T13:06:34ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=System_maintenance&diff=265193System maintenance2013-07-05T16:39:21Z<p>Mescam: changed cacheclean to pkgcacheclean</p>
<hr />
<div>[[Category:System administration]]<br />
[[zh-cn:Arch Linux System Maintenance]]<br />
== Read the News ==<br />
<br />
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.<br />
<br />
The Arch Linux News is posted here: [https://www.archlinux.org/news] You can subscribe to the rss feed by adding: [https://www.archlinux.org/feeds/news] to your favorite feed reading software. You can also get news by subscribing to the Arch Announce mailing list: [https://mailman.archlinux.org/mailman/listinfo/arch-announce].<br />
<br />
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. <br />
<br />
== Update the system ==<br />
<br />
{{Warning|1=System updates should be performed with care. It is very important to read and understand [https://bbs.archlinux.org/viewtopic.php?id=57205 this] before proceeding.}}<br />
<br />
Sync, refresh the package database, and upgrade your entire system with:<br />
<br />
# pacman -Syu<br />
<br />
Or, same thing:<br />
<br />
# pacman --sync --refresh --sysupgrade<br />
<br />
If you are prompted to upgrade pacman itself at this point, respond by pressing {{Keypress|Y}}, and then reissue the {{ic|pacman -Syu}} command when finished.<br />
<br />
{{Note|Occasionally, configuration changes may take place requiring user action during an update; read pacman's output for any pertinent information. See [[Pacnew and Pacsave Files]] for more details.}}<br />
<br />
Keep in mind that Arch is a '''rolling release''' distribution. This means the user doesn't have to reinstall or perform elaborate system rebuilds to upgrade to the newest version. Issuing {{ic|pacman -Syu}} periodically (and noting the above warning) keeps the entire system up-to-date and on the bleeding edge. At the end of this upgrade, the system will be completely current.<br />
<br />
See [[Pacman]] and [[FAQ#Package Management]] for answers regarding updating and managing packages. See [[Upgrade Path|this page]] if you have not update your system for a long time.<br />
<br />
==Packages==<br />
<br />
* When you update, check pacman output for instructions related to updated packages.<br />
<br />
* Use {{ic|pacman -Qdt}} to find orphaned packages, and {{ic|pacman -Qo <file>}} to find out which package owns that particular file.<br />
<br />
* Search for .pac* files and merge them with configuration files (see [[Pacnew and Pacsave Files]]).<br />
<br />
* Check for out-of-date or unmaintained [[Arch User Repository|AUR]] packages on your system. Sometimes these can cause problems when you update.<br />
<br />
* Check the size of {{ic|/var}} and clear pacman's cache once in a while. A useful tool to assist in this process is {{AUR|pkgcacheclean}}.<br />
<br />
==Hardware==<br />
<br />
* Check disk (use fstab options to check at boot)<br />
<br />
* Search logs for errors (list scripts, tools to make this easier/more automated)<br />
<br />
* Look into errors as soon as possible - do not leave them unattended to.<br />
<br />
==Bad Practices==<br />
<br />
* Linking random libraries together to get a program to work.<br />
<br />
* Updating once a year.<br />
<br />
* Copy-pasting commands into the terminal without at least reading man pages to understand what you are doing to your system.<br />
<br />
* Clearing the entire package cache using {{ic|pacman -Scc}} - this removes the possibility to do package downgrades in cases of breakage.<br />
<br />
==See also==<br />
*[[General Recommendations#System administration]]<br />
*[[:Category:System administration]]</div>Mescam