Manjaro - Pacman command Detailed
Others
2019-06-25 05:59:27
views: null
Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )
About Pacman more detailed usage
1. Update the system
command
Explanation
Remark
Pchmn -shyu
Update (the whole system commonly used )
Pacman -Syy
Update
pacman -Syudd
Skip all detected using -dd
2. Search package
command
Explanation
Remark
pacman -Ss keyword
In the warehouse containing the keyword search packages ( common )
pacman SS '^ fcitx-'
pacman -Qs keyword
Search installed package ( common )
pacman -Qs '^ fcitx-'
pacman -Qi package_name
Query details for the local installation package
pacman -Ql package_name
Lists the files for the package
pacman -Fs keyword
Find software libraries by file name
pacman -Si package_name
Display detailed information about remote packages
pacman -Qii package_name
Two displays both -i backup file and modify the state
pacman -Ql package_name
To obtain a list of installed software packages include files
pacman -Fl package_name
Polling remote database package contains
pacman -Qk package_name
Check whether the package installation files are present
pacman -Fo /path/to/file_name
Query files belong to which package the remote database
pacman -Qdt
To list all packages no longer as dependent (isolated orphans)
Credit -Qźde
To list all explicitly installed but is not dependent on other packages package
pactree package_name
To display the dependency tree package
whoneeds package_name
Check mounting a package is dependent on those packets
pkgtoolsAUR in whoneeds
pactree -r package_name
Check mounting a package is dependent on those packets
3. Install the package
command
Explanation
Remark
pacman -S package_name
Execution pacman -S firefox will be installed Firefox ( common )
You can also install multiple packages, only the package name that is separated by spaces
pacman -Sy package_name
Different from the above command, this command is executed after mounting the package database synchronization.
pacman -Sv package_name
After the installation of some display operation information.
pacman -U local_package_name
Local installation package, which extension pkg.tar.gz.
pacman -U url
A remote installation package (not pacman source arranged inside)
例:pacman -U http://www.example.com/repo/example.pkg.tar.xz
3.1 yoghurt
command
Explanation
Remark
pacman -S yaourt
Pacman is a housing community contribution of
yogurt -Syua
Synchronization with yaourt pacman
4. Delete package
command
Explanation
Remark
pacman -R package_name
This command will only delete the package to retain all of its dependencies installed
pacman -Rs package_name
In the removal of the package at the same time, remove all of its dependencies not be used by other installed packages ( common )
pacman -Rsc package_name
In the removal of the package at the same time, remove all depend on this package program
pacman -Rd package_name
Do not check dependencies when deleting package
5. Other Uses
command
Explanation
Remark
pacman -Sw package_name
Only download packages, do not install.
pacman -Sc
Clean package file is not installed, the package file is located in / var / cache / pacman / pkg / directory ( Common )
pacman -Scc
Clear all cache files ( used )
Origin blog.csdn.net/nangy2514/article/details/93194184