Skip to content

System Maintenance Guide

Maintaining NCOS ensures a smooth and efficient system. Follow these Directions to keep your system up to date and running optimally.

Keeping the System Updated

Recommended

To update all packages:

sudo pacman -Syu
To update AUR packages only:
yay --aur

For a full system upgrade including AUR packages :

yay 


Cleaning Up the System

Removing Unused Packages

To remove orphaned packages:

sudo pacman -Rns $(pacman -Qdtq)

Warning

Always double check the package list before deleting

Clearing the Package Cache

To free up disk space:

sudo pacman -Sc  # Remove old package versions
sudo pacman -Scc # Remove all cached packages


Managing Services

Check the status of a service:

systemctl status <service-name>
Enable a service at startup:
sudo systemctl enable <service-name>
Disable a service:
sudo systemctl disable <service-name>
Restart a service:
sudo systemctl restart <service-name>


Checking System Logs

View logs for troubleshooting:

journalctl -xe
View logs for a specific service:
journalctl -u <service-name> --no-pager


Monitoring System Resources

To check system resource usage:

htop 
To check disk usage:
df -h