ΠΠ° Π΄ΠΈΡΡΡΠΈΠ±ΡΡΠΈΡΠ΅ Π±Π°Π·ΠΈΡΠ°Π½Π΅ Π½Π° ΠΡΡ ΠΠΈΠ½ΡΠΊΡΡ / For distros based on Arch Linux
ΠΠΎΠ±ΡΠΎΠ΄ΠΎΡΠ»ΠΈ Ρ ΠΠΎΠ΄ΠΈΡ Π·Π° ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΠΡΡ ΠΠΈΠ½ΡΠΊΡΠ°! ΠΠ²Π°Ρ README ΠΏΡΡΠΆΠ° ΡΠ²Π΅ΠΎΠ±ΡΡ Π²Π°ΡΠ°Π½ ΠΏΡΠ΅Π³Π»Π΅Π΄ ΠΎΡΠ½ΠΎΠ²Π½ΠΈΡ Π·Π°Π΄Π°ΡΠ°ΠΊΠ° ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ° ΠΊΠ°ΠΊΠΎ Π±ΠΈ Π²Π°Ρ ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΡΠΈΡΡΠ΅ΠΌ ΡΠ°Π΄ΠΈΠΎ Π±Π΅Π· ΠΏΡΠΎΠ±Π»Π΅ΠΌΠ°. π
Welcome to the Arch Linux Maintenance Guide! This README provides a comprehensive overview of essential maintenance tasks to keep your Arch Linux system running smoothly. π
- π©Ί | ΠΡΠΎΠ²Π΅ΡΠ΅ Π·Π΄ΡΠ°Π²ΡΠ° ΡΠΈΡΡΠ΅ΠΌΠ° / System Health Checks
- π | ΠΠΆΡΡΠΈΡΠ°ΡΠ° / Updates
- π¦ | Π£ΠΏΡΠ°Π²ΡΠ°ΡΠ΅ ΠΏΠ°ΠΊΠ΅ΡΠΈΠΌΠ° / Package Management
- π§Ή | Π§ΠΈΡΡΠ΅ΡΠ΅ / Cleaning
- π | Π£ΠΏΡΠ°Π²ΡΠ°ΡΠ΅ Π΄Π½Π΅Π²Π½ΠΈΡΠΈΠΌΠ° / Log Management
- π | ΠΠΏΡΠΈΠΌΠΈΠ·Π°ΡΠΈΡΠ° Π»ΠΈΡΡΠ΅ ΠΎΠ³Π»Π΅Π΄Π°Π»Π° / Mirror List Optimization
- π | ΠΠΎΠ΄Π°ΡΠ½ΠΈ ΡΠ΅ΡΡΡΡΠΈ / Additional Resources
-
ΠΡΠΎΠ²Π΅ΡΠ° Π½Π΅ΡΡΠΏΠ΅Π»ΠΈΡ systemd ΡΠ΅ΡΠ²ΠΈΡΠ° / Check for failed systemd services:
systemctl --failed
-
ΠΡΠ΅Π³Π»Π΅Π΄ Π΄Π½Π΅Π²Π½ΠΈΠΊΠ° / Review logs:
sudo journalctl -p 3 -xb
ΠΠ΄ΡΠΆΠ°Π²Π°ΡΡΠ΅ ΡΠΈΡΡΠ΅ΠΌ Π°ΠΆΡΡΠ½ΠΈΠΌ ΠΏΠΎΠΊΡΠ΅ΡΠ°ΡΠ΅ΠΌ / Keep your system up-to-date by running:
sudo pacman -Syu
ΠΠ° AUR ΠΏΠ°ΠΊΠ΅ΡΠ΅ (Π°ΠΊΠΎ ΠΊΠΎΡΠΈΡΡΠΈΡΠ΅ yay) / For AUR packages (if using yay):
yay -Syu
ΠΠ° EndeavourOS ΠΌΠΎΠΆΠ΅ ΡΠ΅ ΠΊΠΎΡΠΈΡΡΠΈΡΠΈ ΡΠ°ΠΌΠΎ (ΠΈ Π·Π° Π°ΠΆΡΡΠΈΡΠ°ΡΠ΅ ΡΠΈΡΡΠ΅ΠΌΠ°) / On EndeavourOS, you can simply use (for system updates as well):
yay
-
Π§ΠΈΡΡΠ΅ΡΠ΅ pacman ΠΊΠ΅ΡΠ° (ΠΏΠ°ΠΊΠ΅ΡΠΈ ΠΊΠΎΡΠΈ Π½ΠΈΡΡ ΠΈΠ½ΡΡΠ°Π»ΠΈΡΠ°Π½ΠΈ Π°Π»ΠΈ ΡΠ΅ Π½Π°Π»Π°Π·Π΅ Ρ pacman / Π½Π΅ΠΊΠΎΡΠΈΡΡΠ΅Π½ΠΈ) / Clean pacman cache (packages not installed but present in pacman / unused):
sudo pacman -Sc
-
Π§ΠΈΡΡΠ΅ΡΠ΅ AUR ΠΊΠ΅ΡΠ° (ΠΏΠ°ΠΊΠ΅ΡΠΈ ΠΊΠΎΡΠΈ Π½ΠΈΡΡ ΠΈΠ½ΡΡΠ°Π»ΠΈΡΠ°Π½ΠΈ / Π½Π΅ΠΊΠΎΡΠΈΡΡΠ΅Π½ΠΈ) / Clean AUR cache (packages not installed / unused):
yay -Sc
-
Π£ΠΊΠ»Π°ΡΠ°ΡΠ΅ Π½Π΅ΠΆΠ΅ΡΠ΅Π½ΠΈΡ Π·Π°Π²ΠΈΡΠ½ΠΎΡΡΠΈ (orphaned packages) / Remove unwanted dependencies (orphaned packages):
yay -Yc
-
Π§ΠΈΡΡΠ΅ΡΠ΅ pacman ΠΈ yay ΠΊΠ΅ΡΠ° (ΡΠ²ΠΈ ΠΏΠ°ΠΊΠ΅ΡΠΈ ΠΠΠΠ‘ΠΠ / ΠΌΠΎΠΆΠ΅ Π΄ΠΎΡΠΈ Π΄ΠΎ ΠΏΡΠΎΠ±Π»Π΅ΠΌΠ° ΡΠ° ΡΠΈΡΡΠ΅ΠΌΠΎΠΌ) / Clean pacman and yay cache (all packages DANGEROUS / may cause system issues):
sudo pacman -Scc yay -Scc
-
ΠΡΠΎΠ²Π΅ΡΠ° ΡΠΈΡΠΎΡΠ°Π΄ΠΈ ΠΏΠ°ΠΊΠ΅ΡΠ° / Check for orphaned packages:
pacman -Qtdq
-
Π£ΠΊΠ»Π°ΡΠ°ΡΠ΅ ΡΠΈΡΠΎΡΠ°Π΄ΠΈ ΠΏΠ°ΠΊΠ΅ΡΠ° (BASH) / Remove orphaned packages (BASH):
sudo pacman -Rns $(pacman -Qtdq)
-
Π§ΠΈΡΡΠ΅ΡΠ΅ ΠΊΠΎΡΠΈΡΠ½ΠΈΡΠΊΠΎΠ³ ΠΊΠ΅ΡΠ° / Clean user cache:
rm -rf ~/.cache/*
-
ΠΡΠΎΠ²Π΅ΡΠ° Π²Π΅Π»ΠΈΡΠΈΠ½Π΅ .config Π΄ΠΈΡΠ΅ΠΊΡΠΎΡΠΈΡΡΠΌΠ° / Check the size of .config directory:
du -sh ~/.config
-
ΠΡΠΎΠ²Π΅ΡΠ° Π²Π΅Π»ΠΈΡΠΈΠ½Π΅ Π΄Π½Π΅Π²Π½ΠΈΠΊΠ° / Check log size:
du -sh /var/log/journal
-
Π§ΠΈΡΡΠ΅ΡΠ΅ Π΄Π½Π΅Π²Π½ΠΈΠΊΠ° (Π·Π°Π΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄ΡΠ΅ Π΄Π²Π΅ Π½Π΅Π΄Π΅ΡΠ΅) / Clean logs (keep last two weeks):
sudo journalctl --vacuum-time=2weeks
ΠΈΠ»ΠΈ / or
sudo journalctl --vacuum-time=1week
ΠΈΠ»ΠΈ / or
sudo journalctl --vacuum-time=3days
ΠΈΠ»ΠΈ / or
sudo journalctl --vacuum-time=1day
ΠΠΆΡΡΠΈΡΠ°ΡΠ΅ Π»ΠΈΡΡΠ΅ ΠΎΠ³Π»Π΅Π΄Π°Π»Π° ΠΏΠΎΠΌΠΎΡΡ reflector-Π° (Ρ ΡΠ»ΡΡΠ°ΡΡ ΠΊΠΎΡΠΈΡΡΠ΅ΡΠ° EndeavourOS-Π° ΠΎΠ½ Π΄ΠΎΠ»Π°Π·ΠΈ ΡΠ° GUI Π·Π° reflector) / Update mirror list using reflector (in case of using EndeavourOS, it comes with a GUI for reflector):
sudo reflector -c Worldwide -a 6 --sort rate --save /etc/pacman.d/mirrorlist
ΠΈΠ»ΠΈ / or
sudo reflector -c [your_country] -a 6 --sort rate --save /etc/pacman.d/mirrorlist
ΠΠ°ΠΌΠ΅Π½ΠΈΡΠ΅ [your_country]
ΠΈΠΌΠ΅Π½ΠΎΠΌ Π²Π°ΡΠ΅ Π·Π΅ΠΌΡΠ΅. ΠΠΎΡΠΈΡΡΠΈΡΠ΅ Π½Π°Π²ΠΎΠ΄Π½ΠΈΠΊΠ΅ Π·Π° Π·Π΅ΠΌΡΠ΅ ΡΠ° Π²ΠΈΡΠ΅ ΡΠ΅ΡΠΈ, Π½ΠΏΡ. 'Serbia'.
Replace [your_country]
with the name of your country. Use quotes for multi-word countries, e.g., 'Serbia'.
- ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΠΠΈΠΊΠΈ: ΠΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΡΠΈΡΡΠ΅ΠΌΠ° / Arch Linux Wiki: System maintenance
- ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΠΠΈΠΊΠΈ: Pacman ΡΠ°Π²Π΅ΡΠΈ ΠΈ ΡΡΠΈΠΊΠΎΠ²ΠΈ / Arch Linux Wiki: Pacman tips and tricks
- A Complete Idiotβs Guide To Endeavour OS Maintenance / Update / Upgrade
ΠΠ΅ Π·Π°Π±ΠΎΡΠ°Π²ΠΈΡΠ΅ Π΄Π° ΠΏΡΠΈΠ»Π°Π³ΠΎΠ΄ΠΈΡΠ΅ ΡΡΡΠΈΠ½Ρ ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ° ΠΏΡΠ΅ΠΌΠ° Π²Π°ΡΠΈΠΌ ΡΠΏΠ΅ΡΠΈΡΠΈΡΠ½ΠΈΠΌ ΠΏΠΎΡΡΠ΅Π±Π°ΠΌΠ° ΠΈ ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΡΠΈ ΡΠΈΡΡΠ΅ΠΌΠ°. Π Π΅Π΄ΠΎΠ²Π½ΠΎ ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΡΠ΅ ΠΏΠΎΠΌΠΎΡΠΈ Π΄Π° ΠΎΡΠΈΠ³ΡΡΠ°ΡΠ΅ ΡΡΠ°Π±ΠΈΠ»Π°Π½ ΠΈ Π΅ΡΠΈΠΊΠ°ΡΠ°Π½ ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΡΠΈΡΡΠ΅ΠΌ! ΠΠΊΠΎ Π½Π΅ΡΡΠΎ Π½ΠΈΡΠ΅ ΡΡΠ΅Π΄Ρ ΡΠ»ΠΎΠ±ΠΎΠ΄Π½ΠΎ ΠΎΡΠ²ΠΎΡΠΈΡΠ΅ issue.
Remember to adjust your maintenance routine according to your specific needs and system configuration. Regular maintenance will help ensure a stable and efficient Arch Linux system! If something is not right feel free to open an issue.