Difference between revisions of "Pacman Overview"

extended warning
(rephrase - it may be necessary - to leave it as an option - clarify inconsistentence as 404 errors)
(extended warning)
 
(5 intermediate revisions by 2 users not shown)
Line 21: Line 21:


<!--T:6-->
<!--T:6-->
To update the package database and update all packages on the system
Update the package database and update all packages on the system
{{UserCmd|command=sudo pacman -Syu}}
{{UserCmd|command=sudo pacman -Syu}}


<!--T:7-->
To force a full refresh of the package database and update all packages on the system. It may necessary when [[Special:MyLanguage/Switching_Branches|switching branches]] or [[Special:MyLanguage/Pacman-mirrors|switching mirrors]] to avoid inconsistent metadata. Inconsistent metadata will be obvious if you get '''404 Not Found''' for certain packages.
</translate>
{{UserCmd|command=sudo pacman -Syyu}}
<translate>
<!--T:8-->
<!--T:8-->
To force a full refresh of the package database, update all packages on the system and allow packages to be downgraded.  Downgrading should be only be needed when switching to an older branch.  For example, switching from Testing to Stable.</translate>
Update all packages on the system and allow packages to be downgraded.  Downgrading should be only be needed when switching to an older branch.  For example, switching from Testing to Stable.</translate>
{{UserCmd|command=sudo pacman -Syyuu}}
{{UserCmd|command=sudo pacman -Syuu}}
 
To install the packages with the broken dependency or with the deadlock dependency. Two or more packages need to be updated and first is blocking second and second is blocking first one. Use carefully!
{{UserCmd|command=sudo pacman -Syudd}}


<translate>
<translate>
Line 62: Line 52:


<!--T:15-->
<!--T:15-->
{{BoxSuccess|Warning|Never install a package without updating the system firstOn a rolling release this can lead to an unbootable system}}
{{BoxWarning|Never install a package without updating the system first| On a rolling release this can lead to an unbootable system}}


<!--T:16-->
<!--T:16-->
Line 81: Line 71:
<translate>
<translate>
<!--T:20-->
<!--T:20-->
{{BoxSuccess|Warning|When using pacman -U it is up to you to ensure that the package you are installing is fully compatible with your system.}}
{{BoxWarning|Warning|When using pacman -U it is up to you to ensure that the package you are installing is fully compatible with your system.}}


=Removing Packages= <!--T:21-->
=Removing Packages= <!--T:21-->


<!--T:22-->
<!--T:22-->
{{BoxSuccess|Warning|Always review the package list before confirming when removing packagesIf you are not careful you can easily remove your entire desktop due to dependencies.}}
{{BoxWarning|Always review the package list before confirming when removing packages|If you are not careful you can easily remove your entire desktop due to dependencies.}}




Line 103: Line 93:


<translate><!--T:26-->
<translate><!--T:26-->
The most nuclear option is {{ic|pacman -Rcs packagename}}. This will remove everything that depends on packagename and continue to do so on its dependencies. This should really only be used in exceptional circumstances such as when removing an entire desktop environment and trying not to leave anything behind.
The most nuclear option is {{ic|pacman -Rcs packagename}}.  
 
{{BoxDanger|Use this with extreme caution, or don’t use it at all|
-Rcs will remove every package that depends on packagename regardless of whether a package is needed for something else. This could render Manjaro unusable. }}


<!--T:27-->
<!--T:27-->
Line 113: Line 104:


<translate>
<translate>
=Viewing and Removing Orphans= <!--T:28-->
=Viewing and Removing Orphans= <!--T:28-->


translator
989

edits