Skip to content

πŸ§Π’ΠΎΠ΄ΠΈΡ‡ Π·Π° ΠΎΠ΄Ρ€ΠΆΠ°Π²Π°ΡšΠ΅ Арч Линукса \|/ 🐧 Arch Linux Maintenance Guide

License

Notifications You must be signed in to change notification settings

crnobog69/arch-maintenance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🐧 Π’ΠΎΠ΄ΠΈΡ‡ Π·Π° ΠΎΠ΄Ρ€ΠΆΠ°Π²Π°ΡšΠ΅ Арч Линукса / Arch Linux Maintenance Guide

ko-fi

(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

  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

НС Π·Π°Π±ΠΎΡ€Π°Π²ΠΈΡ‚Π΅ Π΄Π° ΠΏΡ€ΠΈΠ»Π°Π³ΠΎΠ΄ΠΈΡ‚Π΅ Ρ€ΡƒΡ‚ΠΈΠ½Ρƒ ΠΎΠ΄Ρ€ΠΆΠ°Π²Π°ΡšΠ° ΠΏΡ€Π΅ΠΌΠ° вашим спСцифичним ΠΏΠΎΡ‚Ρ€Π΅Π±Π°ΠΌΠ° ΠΈ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΡ˜ΠΈ систСма. Π Π΅Π΄ΠΎΠ²Π½ΠΎ ΠΎΠ΄Ρ€ΠΆΠ°Π²Π°ΡšΠ΅ Ρ›Π΅ ΠΏΠΎΠΌΠΎΡ›ΠΈ Π΄Π° осигуратС стабилан ΠΈ Сфикасан Арч Линукс систСм! Ако Π½Π΅ΡˆΡ‚ΠΎ нијС ΡƒΡ€Π΅Π΄Ρƒ слободно ΠΎΡ‚Π²ΠΎΡ€ΠΈΡ‚Π΅ 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.

About

πŸ§Π’ΠΎΠ΄ΠΈΡ‡ Π·Π° ΠΎΠ΄Ρ€ΠΆΠ°Π²Π°ΡšΠ΅ Арч Линукса \|/ 🐧 Arch Linux Maintenance Guide

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published