Manjaro Difference between revisions of "Pacman Overview/fr"

Difference between revisions of "Pacman Overview/fr"

From Manjaro
(Created page with "Sinon, vous pouvez l'obtenir directement depuis les miroirs de Manjaro :")
Tags: Mobile web edit Mobile edit
(Updating to match new version of source page)
Tags: Mobile web edit Mobile edit
Line 26: Line 26:
{{UserCmd|command=sudo pacman -Syyuu}}
{{UserCmd|command=sudo pacman -Syyuu}}


 
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}}


=Rechercher des paquets=
=Rechercher des paquets=
Line 72: Line 73:




<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>
{{UserCmd|command=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:
<span lang="en" dir="ltr" class="mw-content-ltr">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:</span>
{{UserCmd|command=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.
<span lang="en" dir="ltr" class="mw-content-ltr">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.</span>
{{UserCmd|command=sudo pacman -Rc smplayer}}
{{UserCmd|command=sudo pacman -Rc smplayer}}




<div lang="en" dir="ltr" class="mw-content-ltr">
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}}.  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.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>
{{UserCmd|command=sudo pacman -Rn smplayer}}
{{UserCmd|command=sudo pacman -Rn smplayer}}
{{UserCmd|command=sudo pacman -Rsun smplayer}}
{{UserCmd|command=sudo pacman -Rsun smplayer}}
Line 94: Line 101:
=Affichage et suppression des orphelins=
=Affichage et suppression des orphelins=


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
{{UserCmd|command=pacman -Qdt}}
{{UserCmd|command=pacman -Qdt}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
To remove all the orphans:
To remove all the orphans:
</div>
{{UserCmd|command=sudo pacman -Rs $(pacman -Qdtq)}}
{{UserCmd|command=sudo pacman -Rs $(pacman -Qdtq)}}


Line 104: Line 115:
=Téléchargement de paquets sans installation=
=Téléchargement de paquets sans installation=


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>
{{UserCmd|command=sudo pacman -Sw smplayer}}
{{UserCmd|command=sudo pacman -Sw smplayer}}




<div lang="en" dir="ltr" class="mw-content-ltr">
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}}
</div>




=Déterminer quel paquet possède un fichier=
=Déterminer quel paquet possède un fichier=


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>
{{UserCmd|command=pacman -Qo /usr/bin/smplayer}}
{{UserCmd|command=pacman -Qo /usr/bin/smplayer}}


Line 119: Line 136:
=Nettoyage du cache=
=Nettoyage du cache=


<div lang="en" dir="ltr" class="mw-content-ltr">
When pacman installs packages, it keeps a copy of all the old packages you have downloaded. This cache can be very useful if you have to install older packages in an emergency. However, left unchecked, this cache will grow very large over time. Systems running [[Special:MyLanguage/Pamac|Pamac]] will already have access to its automated pacman cache cleaning functions.  It is also possible to clean them manually using pacman.
When pacman installs packages, it keeps a copy of all the old packages you have downloaded. This cache can be very useful if you have to install older packages in an emergency. However, left unchecked, this cache will grow very large over time. Systems running [[Special:MyLanguage/Pamac|Pamac]] will already have access to its automated pacman cache cleaning functions.  It is also possible to clean them manually using pacman.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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:
</div>
{{UserCmd|command=sudo pacman -Sc}}
{{UserCmd|command=sudo pacman -Sc}}




Otherwise, to clear the cache completely, enter the following command (and use with care):
<span lang="en" dir="ltr" class="mw-content-ltr">Otherwise, to clear the cache completely, enter the following command (and use with care):</span>
{{UserCmd|command=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}}:
<span lang="en" dir="ltr" class="mw-content-ltr">A safer way to remove old package cache files is to remove all packages except for the latest three package versions using {{ic|paccache}}:</span>
{{UserCmd|command=paccache -rvk3}}
{{UserCmd|command=paccache -rvk3}}


Cookies help us deliver our services. By using our services, you agree to our use of cookies.