Difference between revisions of "Pacman Overview/fr"

Updating to match new version of source page
(Updating to match new version of source page)
Line 8: Line 8:
Points clés à connaître :
Points clés à connaître :


<div class="mw-translate-fuzzy">
* Pacman est installé par défaut dans Manjaro Linux.
* Pacman est installé par défaut dans Manjaro Linux.
* Pacman est principalement développé et maintenu par les développeurs d'Arch Linux
* Pacman est principalement développé et maintenu par les développeurs d'Arch Linux
* Pacman ne peut être utilisé qu'en ligne de commande. Si vous préférez un gestionnaire de paquets graphique, veuillez consulter [[Special:MyLanguage/Pamac|Pamac]] ou [[Special:MyLanguage/Octopi|Octopi]].
* Pacman ne peut être utilisé qu'en ligne de commande. Si vous préférez un gestionnaire de paquets graphique, veuillez consulter [[Special:MyLanguage/Pamac|Pamac]] ou [[Special:MyLanguage/Octopi|Octopi]].
* Pacman ne peut utiliser que le dépôt officiel de Manjaro [[Special:MyLanguage/Repositories_and_Servers|repository]]. Il existe des articles distincts pour accéder au [[Special:MyLanguage/Arch_User_Repository|Arch User Repository(AUR)]], pour utiliser [[Special:MyLanguage/Flatpak|flatpaks]] ou pour utiliser [[Special:MyLanguage/Snaps|snaps]]
* Pacman ne peut utiliser que le dépôt officiel de Manjaro [[Special:MyLanguage/Repositories_and_Servers|repository]]. Il existe des articles distincts pour accéder au [[Special:MyLanguage/Arch_User_Repository|Arch User Repository(AUR)]], pour utiliser [[Special:MyLanguage/Flatpak|flatpaks]] ou pour utiliser [[Special:MyLanguage/Snaps|snaps]]
</div>




=Mises à jour=
=Mises à jour=


<div class="mw-translate-fuzzy">
Pour mettre à jour la base de données de paquets et tout les paquets du système
Pour mettre à jour la base de données de paquets et tout les paquets du système
sudo pacman -Syu
sudo pacman -Syu
</div>




Pour forcer un rafraîchissement complet de la base de données de paquets et mettre à jour tout les paquets du système. Vous devez le faire lorsque vous [[Special:MyLanguage/Switching_Branches|changez de branche]] ou [[Special:MyLanguage/Pacman-mirrors|changez de mirroir]].
Pour forcer un rafraîchissement complet de la base de données de paquets et mettre à jour tout les paquets du système. Vous devez le faire lorsque vous [[Special:MyLanguage/Switching_Branches|changez de branche]] ou [[Special:MyLanguage/Pacman-mirrors|changez de mirroir]].
sudo pacman -Syyu
{{UserCmd|command=sudo pacman -Syyu}}


Pour forcer un rafraîchissement complet de la base de données de paquets, mettre à jour les paquets du système et autoriser les paquets à être rétrograder.
Pour forcer un rafraîchissement complet de la base de données de paquets, mettre à jour les paquets du système et autoriser les paquets à être rétrograder.
Le rétrogradage devrait être seulement nécessaire lors d'un changement de branche. Par exemple passer de Testing à Stable
Le rétrogradage devrait être seulement nécessaire lors d'un changement de branche. Par exemple passer de Testing à Stable
sudo pacman -Syyuu
{{UserCmd|command=sudo pacman -Syyuu}}
 




Line 31: Line 36:


Pour chercher les paquets disponibles dans les dépôts de Manjaro, vous pouvez utiliser {{ic|pacman -Ss mot-clé}}. Cela va chercher le mot-clé dans le nom du paquet et dans la description. Par exemple, pour chercher les paquets contenant le mot-clé smplayer, vous pouvez utiliser :
Pour chercher les paquets disponibles dans les dépôts de Manjaro, vous pouvez utiliser {{ic|pacman -Ss mot-clé}}. Cela va chercher le mot-clé dans le nom du paquet et dans la description. Par exemple, pour chercher les paquets contenant le mot-clé smplayer, vous pouvez utiliser :
pacman -Ss smplayer
{{UserCmd|command=pacman -Ss smplayer}}


Vous pouvez chercher dans vos paquets installés de la même façon en utilisant {{ic|-Qs}} à la place de {{ic|-Ss}}. Pour chercher smplayer dans vos paquets installés :
Vous pouvez chercher dans vos paquets installés de la même façon en utilisant {{ic|-Qs}} à la place de {{ic|-Ss}}. Pour chercher smplayer dans vos paquets installés :
pacman -Qs smplayer
{{UserCmd|command=pacman -Qs smplayer}}




Lorsque vous avez trouvé un paquet vous pouvez utiliser {{ic|pacman -Qi}} pour obtenir plus d'informations sur un paquet installé ou {{ic|pacman -Si}} pour un paquet dans un dépôt. En suivant l'exemple ci-dessus, vous pouvez utiliser :
Lorsque vous avez trouvé un paquet vous pouvez utiliser {{ic|pacman -Qi}} pour obtenir plus d'informations sur un paquet installé ou {{ic|pacman -Si}} pour un paquet dans un dépôt. En suivant l'exemple ci-dessus, vous pouvez utiliser :
pacman -Si smplayer
{{UserCmd|command=pacman -Si smplayer}}




Finalement, pour obtenir la liste de tout les paquets installés sur votre système, entrez la commande suivante :
Finalement, pour obtenir la liste de tout les paquets installés sur votre système, entrez la commande suivante :
pacman -Ql
{{UserCmd|command=pacman -Ql}}




Line 51: Line 56:




To install a software package, the basic syntax is {{ic|pacman -S packagename}}.  However, installing a package without updating the system will lead to a partial upgrade situation so all the examples here will use {{ic|pacman -Syu packagename which will install the package and ensure the system is up to date}}.  For example, to install smplayer the command is:
To install a software package, the basic syntax is {{ic|pacman -S packagename}}.  However, installing a package without updating the system will lead to a partial upgrade situation so all the examples here will use {{ic|pacman -Syu packagename}} which will install the package and ensure the system is up to date.  For example, to install smplayer the command is:
sudo pacman -Syu smplayer
{{UserCmd|command=sudo pacman -Syu smplayer}}


You will then be presented a list of software to install.  You may notice this list has more packages than you requested. This is because many packages also have dependencies which are packages that must be installed in order for the software you selected to function properly.  
You will then be presented a list of software to install.  You may notice this list has more packages than you requested. This is because many packages also have dependencies which are packages that must be installed in order for the software you selected to function properly.  
Line 58: Line 63:


Pacman can also directly install packages from the local system or a location on the internet.  The format of that command is {{ic|pacman -U packagelocation}}.  For example, to install a copy of your package cache you could do something like:
Pacman can also directly install packages from the local system or a location on the internet.  The format of that command is {{ic|pacman -U packagelocation}}.  For example, to install a copy of your package cache you could do something like:
sudo pacman -U /var/cache/pacman/pkg/smplayer-19.5.0-1-x86_64.pkg.tar.xz
{{UserCmd|command=sudo pacman -U /var/cache/pacman/pkg/smplayer-19.5.0-1-x86_64.pkg.tar.xz}}


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
{{UserCmd|command=sudo pacman -U <nowiki>https://mirror.alpix.eu/manjaro/stable/community/x86_64/smplayer-19.5.0-1-x86_64.pkg.tar.xz</nowiki>}}




Line 73: Line 78:


To remove a software package, the basic syntax is {{ic|sudo pacman -R packagename}}.  We could remove the smplayer package we installed above with:
To remove a software package, the basic syntax is {{ic|sudo pacman -R packagename}}.  We could remove the smplayer package we installed above with:
sudo pacman -R smplayer
{{UserCmd|command=sudo pacman -R smplayer}}




This will remove the package, but will leave all the dependencies behind.  If you also want to remove the unneeded dependencies you could use {{ic|pacman -Rsu packagename}} as seen in this example:
This will remove the package, but will leave all the dependencies behind.  If you also want to remove the unneeded dependencies you could use {{ic|pacman -Rsu packagename}} as seen in this example:
sudo pacman -Rsu smplayer
{{UserCmd|command=sudo pacman -Rsu smplayer}}




Sometimes when you try to remove a package you will not be able to because there are other packages which depend on it.  You can use {{ic|pacman -Rc packagename}} to remove a package and everything that depends on it.  Be careful to heed the above warning when using this option.
Sometimes when you try to remove a package you will not be able to because there are other packages which depend on it.  You can use {{ic|pacman -Rc packagename}} to remove a package and everything that depends on it.  Be careful to heed the above warning when using this option.
sudo pacman -Rc smplayer
{{UserCmd|command=sudo pacman -Rc smplayer}}




Line 88: Line 93:


Pacman usually also creates backup configuration files when deleting packages. To remove those, you can add {{ic|n}} to any of the examples above.  For example:
Pacman usually also creates backup configuration files when deleting packages. To remove those, you can add {{ic|n}} to any of the examples above.  For example:
sudo pacman -Rn smplayer
{{UserCmd|command=sudo pacman -Rn smplayer}}
sudo pacman -Rsun smplayer
{{UserCmd|command=sudo pacman -Rsun smplayer}}
sudo pacman -Rcn smplayer
{{UserCmd|command=sudo pacman -Rcn smplayer}}


=Affichage et suppression des orphelins=
=Affichage et suppression des orphelins=


To list all ''orphans'', installed packages that are not used by anything else and should no longer be needed:
To list all ''orphans'', installed packages that are not used by anything else and should no longer be needed:
pacman -Qdt
{{UserCmd|command=pacman -Qdt}}




To remove all the orphans:
To remove all the orphans:
sudo pacman -Rs $(pacman -Qdtq)
{{UserCmd|command=sudo pacman -Rs $(pacman -Qdtq)}}




Line 105: Line 110:


In some cases it may be useful to download a package without installing.  For example, to install on a different system that is not connected to the internet.  This can be done with {{ic|pacman -Sw packagename}}.  For example:
In some cases it may be useful to download a package without installing.  For example, to install on a different system that is not connected to the internet.  This can be done with {{ic|pacman -Sw packagename}}.  For example:
sudo pacman -Sw smplayer
{{UserCmd|command=sudo pacman -Sw smplayer}}




Line 114: Line 119:


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
{{UserCmd|command=pacman -Qo /usr/bin/smplayer}}




Line 122: Line 127:


To clear the cache of packages that are no longer installed, enter the following command:
To clear the cache of packages that are no longer installed, enter the following command:
sudo pacman -Sc
{{UserCmd|command=sudo pacman -Sc}}




Otherwise, to clear the cache completely, enter the following command (and use with care):
Otherwise, to clear the cache completely, enter the following command (and use with care):
sudo pacman -Scc
{{UserCmd|command=sudo pacman -Scc}}




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
{{UserCmd|command=paccache -rvk3}}




Line 165: Line 170:




[[Category:Contents Page]]
[[Category:Contents Page{{#translation:}}]]
8,113

edits