Difference between revisions of "Pacman Overview"

m
prepare translation
(Prepared the page for translation)
m (prepare translation)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
__TOC__
__TOC__


 
<translate>
=Overview=
=Overview=


Line 14: Line 13:
* Pacman can only be used from the command line, if you would prefer a graphical package manager please see [[Special:MyLanguage/Pamac|Pamac]] or [[Special:MyLanguage/Octopi|Octopi]]
* Pacman can only be used from the command line, if you would prefer a graphical package manager please see [[Special:MyLanguage/Pamac|Pamac]] or [[Special:MyLanguage/Octopi|Octopi]]
* Pacman can only use the official Manjaro [[Special:MyLanguage/Repositories_and_Servers|repository]]. There are seperate articles available for accessing the [[Special:MyLanguage/Arch_User_Repository|Arch User Repository(AUR)]], using [[Special:MyLanguage/Flatpak|flatpaks]] and using [[Special:MyLanguage/Snaps|snaps]]
* Pacman can only use the official Manjaro [[Special:MyLanguage/Repositories_and_Servers|repository]]. There are seperate articles available for accessing the [[Special:MyLanguage/Arch_User_Repository|Arch User Repository(AUR)]], using [[Special:MyLanguage/Flatpak|flatpaks]] and using [[Special:MyLanguage/Snaps|snaps]]
</translate>


 
<translate>
=Installing Updates=
=Installing Updates=


Line 28: Line 28:
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.
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.
  sudo pacman -Syyuu
  sudo pacman -Syyuu
</translate>


 
<translate>
=Searching for Packages=
=Searching for Packages=


Line 46: Line 47:
Finally, for a list of all installed packages on your system, enter the following command:
Finally, for a list of all installed packages on your system, enter the following command:
  pacman -Ql
  pacman -Ql
</translate>


 
<translate>
=Installing Packages=
=Installing Packages=


</translate>
{{warning|Never install a package without updating the system first.  On a rolling release this can lead to an unbootable system}}
{{warning|Never install a package without updating the system first.  On a rolling release this can lead to an unbootable system}}
<translate>
 




Line 67: Line 68:
Alternatively, you could get it directly from one of Manjaro's mirrors:
Alternatively, you could get it directly from one of Manjaro's mirrors:
  sudo pacman -U https://mirror.alpix.eu/manjaro/stable/community/x86_64/smplayer-19.5.0-1-x86_64.pkg.tar.xz
  sudo pacman -U https://mirror.alpix.eu/manjaro/stable/community/x86_64/smplayer-19.5.0-1-x86_64.pkg.tar.xz
</translate>


<translate>
{{warning|When using pacman -U it is up to you to ensure that the package you are installing is fully compatible with your system.}}
</translate>


</translate>
{{warning|When using pacman -U it is up to you to ensure that the package you are installing is fully compatible with your system.}}
<translate>
<translate>
=Removing Packages=
=Removing Packages=


</translate>
{{warning|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.}}
{{warning|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.}}
<translate>




Line 99: Line 99:
  sudo pacman -Rsun smplayer
  sudo pacman -Rsun smplayer
  sudo pacman -Rcn smplayer
  sudo pacman -Rcn smplayer
</translate>


 
<translate>
=Viewing and Removing Orphans=
=Viewing and Removing Orphans=


Line 109: Line 110:
To remove all the orphans:
To remove all the orphans:
  sudo pacman -Rs $(pacman -Qdtq)
  sudo pacman -Rs $(pacman -Qdtq)
</translate>


 
<translate>
=Downloading Packages without Installing=
=Downloading Packages without Installing=


Line 118: Line 120:


The package and any rerquired dependencies will be downloaded to your pacman cache at {{ic|/var/cache/pacman/pkg}}
The package and any rerquired dependencies will be downloaded to your pacman cache at {{ic|/var/cache/pacman/pkg}}
</translate>


 
<translate>
=Determining which Package Owns a File=
=Determining which Package Owns a File=


It is often useful to understand which package installed a file on your system.  This is easy to do with pacman using {{ic|pacman -Qo /path/to/filename}}.  For example:
It is often useful to understand which package installed a file on your system.  This is easy to do with pacman using {{ic|pacman -Qo /path/to/filename}}.  For example:
  pacman -Qo /usr/bin/smplayer
  pacman -Qo /usr/bin/smplayer
</translate>


 
<translate>
=Cleaning the Cache=
=Cleaning the Cache=


Line 140: Line 144:
A safer way to remove old package cache files is to remove all packages except for the latest three package versions using {{ic|paccache}}:
A safer way to remove old package cache files is to remove all packages except for the latest three package versions using {{ic|paccache}}:
  paccache -rvk3
  paccache -rvk3
</translate>


<translate>
=The Configuration File, pacman.conf=
=The Configuration File, pacman.conf=


Line 146: Line 152:




{{note|pacman.conf settings are case sensitive}}
</translate>
</translate>
{{note|pacman.conf settings are case sensitive}}
<translate>




<translate>
==Enabling Color Output==
==Enabling Color Output==


By default, pacman's output is monochrome but enabling colored output can make the output easier to read if your terminal supports colors.  This can be enabled by uncommenting or adding the following line to the file
By default, pacman's output is monochrome but enabling colored output can make the output easier to read if your terminal supports colors.  This can be enabled by uncommenting or adding the following line to the file
  Color
  Color
</translate>


 
<translate>
 
==Showing PacMan Eating Power Pills==
==Showing PacMan Eating Power Pills==


If you are bored of simply watching lines of hashes while downloading software packages in the terminal, why not change the progress bar to Pacman eating power pills instead?  To enable this, simply add the line:
If you are bored of simply watching lines of hashes while downloading software packages in the terminal, why not change the progress bar to Pacman eating power pills instead?  To enable this, simply add the line:
  ILoveCandy
  ILoveCandy
</translate>


 
<translate>
=Troubleshooting=
=Troubleshooting=


A separate page for pacman troubleshooting is available '''[[Special:MyLanguage/pacman troubleshooting|here]]'''.
A separate page for pacman troubleshooting is available '''[[Special:MyLanguage/pacman troubleshooting|here]]'''.
</translate>


 
<translate>
=See Also=
=See Also=


Line 179: Line 186:
* [https://wiki.archlinux.org/index.php/Pacman_tips ArchWiki: pacman tips]
* [https://wiki.archlinux.org/index.php/Pacman_tips ArchWiki: pacman tips]
* [https://wiki.archlinux.org/index.php/Improve_pacman_performance ArchWiki: pacman performance]
* [https://wiki.archlinux.org/index.php/Improve_pacman_performance ArchWiki: pacman performance]
</translate>




[[Category:Contents Page]]
[[Category:Contents Page]]
</translate>
Moderators, translator
119

edits