Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crnobog69/arch-maintenance
π§ΠΠΎΠ΄ΠΈΡ Π·Π° ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΠΡΡ ΠΠΈΠ½ΡΠΊΡΠ° \|/ π§ Arch Linux Maintenance Guide
https://github.com/crnobog69/arch-maintenance
arch-linux archlinux maintenance
Last synced: about 1 month ago
JSON representation
π§ΠΠΎΠ΄ΠΈΡ Π·Π° ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΠΡΡ ΠΠΈΠ½ΡΠΊΡΠ° \|/ π§ Arch Linux Maintenance Guide
- Host: GitHub
- URL: https://github.com/crnobog69/arch-maintenance
- Owner: crnobog69
- License: wtfpl
- Created: 2024-07-15T15:51:27.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T19:13:57.000Z (3 months ago)
- Last Synced: 2024-09-15T04:33:15.347Z (3 months ago)
- Topics: arch-linux, archlinux, maintenance
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π§ ΠΠΎΠ΄ΠΈΡ Π·Π° ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΠΡΡ ΠΠΈΠ½ΡΠΊΡΠ° / Arch Linux Maintenance Guide
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/P5P311PGR8)### (Arch Linux/EndeavourOS/CachyOS/Manjaro Linux/Garuda Linux/Artix Linux/RebornOS/ArchCraft...)
### ΠΠ° Π΄ΠΈΡΡΡΠΈΠ±ΡΡΠΈΡΠ΅ Π±Π°Π·ΠΈΡΠ°Π½Π΅ Π½Π° ΠΡΡ ΠΠΈΠ½ΡΠΊΡΡ / 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. π
## π Π‘Π°Π΄ΡΠΆΠ°Ρ / Table of Contents
- π©Ί | [ΠΡΠΎΠ²Π΅ΡΠ΅ Π·Π΄ΡΠ°Π²ΡΠ° ΡΠΈΡΡΠ΅ΠΌΠ° / System Health Checks](#-ΠΏΡΠΎΠ²Π΅ΡΠ΅-Π·Π΄ΡΠ°Π²ΡΠ°-ΡΠΈΡΡΠ΅ΠΌΠ°--system-health-checks)
- π | [ΠΠΆΡΡΠΈΡΠ°ΡΠ° / Updates](#-Π°ΠΆΡΡΠΈΡΠ°ΡΠ°--updates)
- π¦ | [Π£ΠΏΡΠ°Π²ΡΠ°ΡΠ΅ ΠΏΠ°ΠΊΠ΅ΡΠΈΠΌΠ° / Package Management](#-ΡΠΏΡΠ°Π²ΡΠ°ΡΠ΅-ΠΏΠ°ΠΊΠ΅ΡΠΈΠΌΠ°--package-management)
- π§Ή | [Π§ΠΈΡΡΠ΅ΡΠ΅ / Cleaning](#-ΡΠΈΡΡΠ΅ΡΠ΅--cleaning)
- π | [Π£ΠΏΡΠ°Π²ΡΠ°ΡΠ΅ Π΄Π½Π΅Π²Π½ΠΈΡΠΈΠΌΠ° / Log Management](#-ΡΠΏΡΠ°Π²ΡΠ°ΡΠ΅-Π΄Π½Π΅Π²Π½ΠΈΡΠΈΠΌΠ°--log-management)
- π | [ΠΠΏΡΠΈΠΌΠΈΠ·Π°ΡΠΈΡΠ° Π»ΠΈΡΡΠ΅ ΠΎΠ³Π»Π΅Π΄Π°Π»Π° / Mirror List Optimization](#-ΠΎΠΏΡΠΈΠΌΠΈΠ·Π°ΡΠΈΡΠ°-Π»ΠΈΡΡΠ΅-ΠΎΠ³Π»Π΅Π΄Π°Π»Π°--mirror-list-optimization)
- π | [ΠΠΎΠ΄Π°ΡΠ½ΠΈ ΡΠ΅ΡΡΡΡΠΈ / Additional Resources](#-Π΄ΠΎΠ΄Π°ΡΠ½ΠΈ-ΡΠ΅ΡΡΡΡΠΈ--additional-resources)## π©Ί ΠΡΠΎΠ²Π΅ΡΠ΅ Π·Π΄ΡΠ°Π²ΡΠ° ΡΠΈΡΡΠ΅ΠΌΠ° / System Health Checks
1. **ΠΡΠΎΠ²Π΅ΡΠ° Π½Π΅ΡΡΠΏΠ΅Π»ΠΈΡ systemd ΡΠ΅ΡΠ²ΠΈΡΠ° / Check for failed systemd services:**
```
systemctl --failed
```2. **ΠΡΠ΅Π³Π»Π΅Π΄ Π΄Π½Π΅Π²Π½ΠΈΠΊΠ° / Review logs:**
```
sudo journalctl -p 3 -xb
```## π ΠΠΆΡΡΠΈΡΠ°ΡΠ° / Updates
ΠΠ΄ΡΠΆΠ°Π²Π°ΡΡΠ΅ ΡΠΈΡΡΠ΅ΠΌ Π°ΠΆΡΡΠ½ΠΈΠΌ ΠΏΠΎΠΊΡΠ΅ΡΠ°ΡΠ΅ΠΌ / 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
```## π¦ Π£ΠΏΡΠ°Π²ΡΠ°ΡΠ΅ ΠΏΠ°ΠΊΠ΅ΡΠΈΠΌΠ° / Package Management
1. **Π§ΠΈΡΡΠ΅ΡΠ΅ pacman ΠΊΠ΅ΡΠ° (ΠΏΠ°ΠΊΠ΅ΡΠΈ ΠΊΠΎΡΠΈ Π½ΠΈΡΡ ΠΈΠ½ΡΡΠ°Π»ΠΈΡΠ°Π½ΠΈ Π°Π»ΠΈ ΡΠ΅ Π½Π°Π»Π°Π·Π΅ Ρ pacman / Π½Π΅ΠΊΠΎΡΠΈΡΡΠ΅Π½ΠΈ) / Clean pacman cache (packages not installed but present in pacman / unused):**
```
sudo pacman -Sc
```
2. **Π§ΠΈΡΡΠ΅ΡΠ΅ AUR ΠΊΠ΅ΡΠ° (ΠΏΠ°ΠΊΠ΅ΡΠΈ ΠΊΠΎΡΠΈ Π½ΠΈΡΡ ΠΈΠ½ΡΡΠ°Π»ΠΈΡΠ°Π½ΠΈ / Π½Π΅ΠΊΠΎΡΠΈΡΡΠ΅Π½ΠΈ) / Clean AUR cache (packages not installed / unused):**
```
yay -Sc
```
3. **Π£ΠΊΠ»Π°ΡΠ°ΡΠ΅ Π½Π΅ΠΆΠ΅ΡΠ΅Π½ΠΈΡ Π·Π°Π²ΠΈΡΠ½ΠΎΡΡΠΈ (orphaned packages) / Remove unwanted dependencies (orphaned packages):**
```
yay -Yc
```
4. **Π§ΠΈΡΡΠ΅ΡΠ΅ pacman ΠΈ yay ΠΊΠ΅ΡΠ° (ΡΠ²ΠΈ ΠΏΠ°ΠΊΠ΅ΡΠΈ *ΠΠΠΠ‘ΠΠ / ΠΌΠΎΠΆΠ΅ Π΄ΠΎΡΠΈ Π΄ΠΎ ΠΏΡΠΎΠ±Π»Π΅ΠΌΠ° ΡΠ° ΡΠΈΡΡΠ΅ΠΌΠΎΠΌ*) / Clean pacman and yay cache (all packages *DANGEROUS / may cause system issues*):**
```
sudo pacman -Scc
yay -Scc
```
5. **ΠΡΠΎΠ²Π΅ΡΠ° ΡΠΈΡΠΎΡΠ°Π΄ΠΈ ΠΏΠ°ΠΊΠ΅ΡΠ° / Check for orphaned packages:**
```
pacman -Qtdq
```6. **Π£ΠΊΠ»Π°ΡΠ°ΡΠ΅ ΡΠΈΡΠΎΡΠ°Π΄ΠΈ ΠΏΠ°ΠΊΠ΅ΡΠ° (*BASH*) / Remove orphaned packages (*BASH*):**
```
sudo pacman -Rns $(pacman -Qtdq)
```## π§Ή Π§ΠΈΡΡΠ΅ΡΠ΅ / Cleaning
1. **Π§ΠΈΡΡΠ΅ΡΠ΅ ΠΊΠΎΡΠΈΡΠ½ΠΈΡΠΊΠΎΠ³ ΠΊΠ΅ΡΠ° / Clean user cache:**
```
rm -rf ~/.cache/*
```2. **ΠΡΠΎΠ²Π΅ΡΠ° Π²Π΅Π»ΠΈΡΠΈΠ½Π΅ .config Π΄ΠΈΡΠ΅ΠΊΡΠΎΡΠΈΡΡΠΌΠ° / Check the size of .config directory:**
```
du -sh ~/.config
```## π Π£ΠΏΡΠ°Π²ΡΠ°ΡΠ΅ Π΄Π½Π΅Π²Π½ΠΈΡΠΈΠΌΠ° / Log Management
1. **ΠΡΠΎΠ²Π΅ΡΠ° Π²Π΅Π»ΠΈΡΠΈΠ½Π΅ Π΄Π½Π΅Π²Π½ΠΈΠΊΠ° / Check log size:**
```
du -sh /var/log/journal
```2. **Π§ΠΈΡΡΠ΅ΡΠ΅ Π΄Π½Π΅Π²Π½ΠΈΠΊΠ° (Π·Π°Π΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΠΏΠΎΡΠ»Π΅Π΄ΡΠ΅ Π΄Π²Π΅ Π½Π΅Π΄Π΅ΡΠ΅) / 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
```## π ΠΠΏΡΠΈΠΌΠΈΠ·Π°ΡΠΈΡΠ° Π»ΠΈΡΡΠ΅ ΠΎΠ³Π»Π΅Π΄Π°Π»Π° / Mirror List Optimization
ΠΠΆΡΡΠΈΡΠ°ΡΠ΅ Π»ΠΈΡΡΠ΅ ΠΎΠ³Π»Π΅Π΄Π°Π»Π° ΠΏΠΎΠΌΠΎΡΡ 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'.
## π ΠΠΎΠ΄Π°ΡΠ½ΠΈ ΡΠ΅ΡΡΡΡΠΈ / Additional Resources
- [ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΠΠΈΠΊΠΈ: ΠΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΡΠΈΡΡΠ΅ΠΌΠ° / Arch Linux Wiki: System maintenance](https://wiki.archlinux.org/title/System_maintenance)
- [ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΠΠΈΠΊΠΈ: Pacman ΡΠ°Π²Π΅ΡΠΈ ΠΈ ΡΡΠΈΠΊΠΎΠ²ΠΈ / Arch Linux Wiki: Pacman tips and tricks](https://wiki.archlinux.org/title/Pacman/Tips_and_tricks)
- [A Complete Idiotβs Guide To Endeavour OS Maintenance / Update / Upgrade](https://forum.endeavouros.com/t/a-complete-idiots-guide-to-endeavour-os-maintenance-update-upgrade/25184)ΠΠ΅ Π·Π°Π±ΠΎΡΠ°Π²ΠΈΡΠ΅ Π΄Π° ΠΏΡΠΈΠ»Π°Π³ΠΎΠ΄ΠΈΡΠ΅ ΡΡΡΠΈΠ½Ρ ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ° ΠΏΡΠ΅ΠΌΠ° Π²Π°ΡΠΈΠΌ ΡΠΏΠ΅ΡΠΈΡΠΈΡΠ½ΠΈΠΌ ΠΏΠΎΡΡΠ΅Π±Π°ΠΌΠ° ΠΈ ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΡΠΈ ΡΠΈΡΡΠ΅ΠΌΠ°. Π Π΅Π΄ΠΎΠ²Π½ΠΎ ΠΎΠ΄ΡΠΆΠ°Π²Π°ΡΠ΅ ΡΠ΅ ΠΏΠΎΠΌΠΎΡΠΈ Π΄Π° ΠΎΡΠΈΠ³ΡΡΠ°ΡΠ΅ ΡΡΠ°Π±ΠΈΠ»Π°Π½ ΠΈ Π΅ΡΠΈΠΊΠ°ΡΠ°Π½ ΠΡΡ ΠΠΈΠ½ΡΠΊΡ ΡΠΈΡΡΠ΅ΠΌ!
ΠΠΊΠΎ Π½Π΅ΡΡΠΎ Π½ΠΈΡΠ΅ ΡΡΠ΅Π΄Ρ ΡΠ»ΠΎΠ±ΠΎΠ΄Π½ΠΎ ΠΎΡΠ²ΠΎΡΠΈΡΠ΅ 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.