Manjaro Difference between revisions of "System Maintenance"

Difference between revisions of "System Maintenance"

From Manjaro
m (change link to from archived manjaro forum to web.archive.org)
(Clarify pacman commands to use and those to avoid)
Line 70: Line 70:


<!--T:21-->
<!--T:21-->
{{BoxSuccess|warning|Partial updates are not supported under any circumstances}}
{{BoxDanger|danger|Partial updates are not supported under any circumstances}}


<!--T:22-->
<!--T:22-->
It is of critical importance to ensure you don't end up in a state where your system is partially upgraded.<br />
It is of critical importance to ensure you don't end up in a state where your system is partially upgraded.<br />
It is not uncommon for systems in partially updated state to end up in a critical failure state.<br />
It is not uncommon for systems in partially updated state to end up in a critical failure state.<br />
Here are some important rules to help you avoid this dangerous situation.
Here are some important rules to help you avoid this undesired situation.


<!--T:23-->
<!--T:23-->
* Always ensure your system is fully up-to-date before installing software.
* You can install a single package use {{ic|pacman -S <pkgname>}} - this may yield a 404 error if your metadata is not current.
* Don't downgrade packages, this will always result in a partial update scenario.
* Always {{ic|pacman -Syu}} or in case of change in mirrorlist {{ic|pacman -Syyu}} to metadata current.
* Avoid using {{ic|pacman -Sy}} or {{ic|pacman -Syy}}. Instead update your database and packages at the same time with {{ic|pacman -Syu}} or in case of change in mirrorlist {{ic|pacman -Syyu}}
* Don't use {{ic|pacman -Sy}}, {{ic|pacman -Syy}}, {{ic|pacman -Syuw}} as this will update the metadata but not sync the packages to your system.
* Don't add packages to pacman's or pamac's ignore list.
* Don't add packages to pacman's or pamac's ignore list.
* If you just want to check to see what updates are available use the command {{ic|checkupdates}}.  It provides a safe way to check for upgrades to installed packages without running a system update at the same time.
* If you just want to check to see what updates are available use the command {{ic|checkupdates}}.  It provides a safe way to check for upgrades to installed packages without running a system update at the same time.
* When [[Switching_Branches|switching branches]] or [[Pacman-mirrors|switching mirrors]] always use {{ic|pamac update --force-refresh}} or {{ic|pacman -Syyu}} to ensure that the databases for your new mirrors are being used.
* When [[Switching_Branches|switching branches]] or [[Pacman-mirrors|switching mirrors]] always sync your systems metadata and packages using {{ic|pamac update --force-refresh}} or {{ic|pacman -Syyu}}.


==Removing Orphans== <!--T:24-->
==Removing Orphans== <!--T:24-->
Cookies help us deliver our services. By using our services, you agree to our use of cookies.